-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose_tgd.yml
52 lines (48 loc) · 1.27 KB
/
docker-compose_tgd.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'
services:
mysql:
image: gcd-mysql:${TGD_DUMP_DATE_CURR}
container_name: gcd-mysql:${TGD_DUMP_DATE_CURR}
build:
context: .
dockerfile: tgd/mysql/Dockerfile
restart: unless-stopped
ports:
- "3306:3306"
environment:
- MYSQL_HOST=localhost
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=tgd
- MYSQL_PORT=${MYSQL_PORT}
volumes:
- ./data/volumes/tgd_mysql_${TGD_DUMP_DATE_CURR}:/var/lib/mysql
- ./data/tgd/:/docker-entrypoint-initdb.d
networks:
- backend
python:
image: gcd-python:${TGD_DUMP_DATE_CURR}
container_name: gcd-python:${TGD_DUMP_DATE_CURR}
build:
context: .
dockerfile: tgd/python/Dockerfile
depends_on:
- mysql
restart: unless-stopped
environment:
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=tgd
- MYSQL_PORT=${MYSQL_PORT}
- GCD_DUMP_DATE_LAST=${GCD_DUMP_DATE_LAST}
- GCD_DUMP_DATE_CURR=${GCD_DUMP_DATE_CURR}
- TGD_DUMP_DATE_CURR=${TGD_DUMP_DATE_CURR}
volumes:
- ./python:/python
networks:
- frontend
- backend
networks:
frontend:
backend: