-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
51 lines (46 loc) Β· 1.12 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
version: "3.5"
services:
server:
build:
context: ./server
dockerfile: ../docker/server.Dockerfile
networks:
- backend
nginx_client:
restart: always
build:
context: ./client
dockerfile: ../docker/client.Dockerfile
ports:
- "443:443"
depends_on:
- server
networks:
- backend
volumes:
- /var/www/boolean-avengers:/var/www/boolean-avengers
db:
build:
context: ./mysql
dockerfile: ../docker/mysql.Dockerfile
environment:
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mysql_secret
MYSQL_USER: drstrange
MYSQL_PASSWORD_FILE: /run/secrets/mysql_secret
MYSQL_DATABASE: BooleanAvengers
secrets:
- mysql_secret
ports:
- "3306:3306"
networks:
- backend
volumes:
- mysql_data:/var/lib/mysql
networks:
backend:
driver: bridge
secrets:
mysql_secret:
file: secret
volumes:
mysql_data: