-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.36 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
version: '3'
services:
app:
build:
context: ./app
args:
- PHP_VERSION=${PHP_VERSION}
- APP_CONTAINER_PATH=${APP_CONTAINER_PATH}
- XDEBUG_REMOTE_HOST=${XDEBUG_REMOTE_HOST}
- XDEBUG_IDEKEY=${XDEBUG_IDEKEY}
volumes:
- ..:${APP_CONTAINER_PATH}
- ./logs/app:${APP_CONTAINER_PATH}/${APP_NAME}/storage/logs
depends_on:
- db
nginx:
build:
context: ./nginx
args:
- APP_NAME=${APP_NAME}
- APP_CONTAINER_PATH=${APP_CONTAINER_PATH}
volumes:
- ./logs/nginx:/var/log/nginx
- ..:${APP_CONTAINER_PATH}
ports:
- "${NGINX_HOST_HTTP_PORT}:80"
- "${NGINX_HOST_HTTPS_PORT}:443"
depends_on:
- app
db:
build:
context: ./mysql
args:
- MYSQL_VERSION=${MYSQL_VERSION}
restart: always
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- TZ=${TIMEZONE}
volumes:
- ./mysql/data:/var/lib/mysql
- ./logs/db:/var/log/mysql
ports:
- "${MYSQL_HOST_PORT}:3306"
node:
build:
context: ./node
args:
- NODE_VERSION=${NODE_VERSION}
- NODE_APP_CONTAINER_PATH=${NODE_APP_CONTAINER_PATH}
tty: true
volumes:
- ..:${NODE_APP_CONTAINER_PATH}