-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
73 lines (67 loc) · 1.33 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3'
networks:
webapp:
services:
nginx:
image: nginx:stable-alpine
container_name: ${APP_NAME}_nginx
ports:
- "8000:80"
links:
- php
volumes:
- ./:/var/www/html
- ./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf:rw
- ./docker/logs/nginx:/var/logs/nginx:rw
depends_on:
- php
- mysql
networks:
- webapp
php:
build:
context: .
dockerfile: Dockerfile
container_name: ${APP_NAME}_php
volumes:
- ./:/var/www/html
ports:
- "9001:9000"
networks:
- webapp
npm:
image: node:16
container_name: ${APP_NAME}_npm
user: "1000:1000"
volumes:
- ./:/var/www/html
working_dir: /var/www/html
entrypoint: ['npm']
#Mysql DB
mysql:
image: mysql:8.0
container_name: db
restart: unless-stopped
tty: true
ports:
- "33061:3306"
environment:
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: laravel
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./mysql:/var/lib/mysql
networks:
- webapp
redis:
image: redis:4.0
container_name: ${APP_NAME}_redis
ports:
- "6379:6379"
networks:
- webapp
volumes:
mysql:
driver: local