-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.02 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
version: "3.6"
services:
nginx:
image: nginx:1.15
working_dir: /var/www/html
ports:
- "80:80"
- "443:443"
volumes:
- ./avantage:/var/www/html/avantage
- ./config/nginx/includes:/etc/nginx/includes:ro
- ./config/nginx/auth:/etc/nginx/auth
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
mysql:
image: mysql:5.7
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
volumes:
- mysqldata:/var/lib/mysql
avantage:
ports:
- "24678:24678"
- "9222:9222"
- "5454:5555"
user: node
build:
dockerfile: Dockerfile
context: ./config/avantage
working_dir: /var/www/html/avantage
volumes:
- ./avantage:/var/www/html/avantage
command: sh -c "node .output/server/index.mjs"
stdin_open: true
tty: true
networks:
- default
volumes:
mysqldata:
driver: local