-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
69 lines (64 loc) · 1.54 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
60
61
62
63
64
65
66
67
68
69
version: '2.3'
services:
redis:
container_name: redis
ports:
- '${REDIS_BIND_PORT}:${REDIS_MAP_PORT}'
image: redis:alpine
csdgan:
container_name: ${APP_NAME}
ports:
- '${APP_BIND_PORT}:${APP_MAP_PORT}'
environment:
- SECRET_KEY=${SECRET_KEY}
- REDIS_URL=redis://redis-server:${REDIS_MAP_PORT}/0
- DB_USER=${DB_USER}
- DB_PW=${DB_PW}
- DB_HOST=${DB_NAME}
- APP_NAME=${APP_NAME}
- DOCKERIZED=1
links:
- redis:redis-server
- mysql:dbserver
volumes:
- MyDataVolume:/MyDataVolume
command: '${RELOAD}'
image: atrus619/${APP_NAME}:latest
depends_on:
- redis
- mysql
runtime: nvidia
rq-worker:
container_name: rq-worker
environment:
- SECRET_KEY=${SECRET_KEY}
- REDIS_URL=redis://redis-server:${REDIS_MAP_PORT}/0
- DB_USER=${DB_USER}
- DB_PW=${DB_PW}
- DB_HOST=${DB_NAME}
- APP_NAME=${APP_NAME}
- DOCKERIZED=1
links:
- redis:redis-server
- mysql:dbserver
volumes:
- MyDataVolume:/MyDataVolume
entrypoint:
- venv/bin/rq
image: atrus619/${APP_NAME}:latest
depends_on:
- redis
- mysql
command: worker -u redis://redis-server:${REDIS_MAP_PORT}/0 CSDGAN
runtime: nvidia
mysql:
container_name: mysql
hostname: mysql
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=${APP_NAME}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PW}
image: mysql/mysql-server:5.7
volumes:
MyDataVolume: