-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (50 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
52
version: "3.7"
services:
nginx:
image: nginx:1.15-alpine
ports:
#- 80:80
- 443:443
restart: unless-stopped
depends_on:
- app
volumes:
- /etc/nginx/ssl:/etc/nginx/ssl
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- static_volume:/api/static
networks:
- birdsong-net
db:
image: mysql:8.0.31
command: --default-authentication-plugin=mysql_native_password
ports:
- "$MYSQL_PORT:3306"
volumes:
- $DATA_DIR/$MYSQL_DATABASE:/var/lib/mysql
- ./conf:/etc/mysql/conf.d
- ./sql:/docker-entrypoint-initdb.d
environment:
- MYSQL_DATABASE=$MYSQL_DATABASE
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
user: "8010:8009"
restart: unless-stopped
networks:
- $MYSQL_DATABASE-net
app:
build: ./api
restart: unless-stopped
depends_on:
- db
volumes:
- ./api:/api
- static_volume:/api/static
environment:
- TZ=America/New_York
- PYTHONUNBUFFERED=1
networks:
- birdsong-net
networks:
birdsong-net:
driver: bridge
volumes:
static_volume: