-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
95 lines (84 loc) · 1.99 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '2'
services:
celery:
restart: always
image: tbackman/debian-cheminformatics:debian10-update2
volumes:
- .:/clusterCAD
- /www/static
- /www/media
depends_on:
- db
- redis
- web
working_dir: /clusterCAD
command: [celery, -A, clusterCAD, worker, -l, info, --loglevel=INFO]
celery-beat:
restart: always
image: tbackman/debian-cheminformatics:debian10-update2
volumes:
- .:/clusterCAD
- /www/static
- /www/media
depends_on:
- db
- redis
- web
working_dir: /clusterCAD
command: [celery, -A, clusterCAD, beat, -l, info, --loglevel=INFO, --pidfile=]
db:
user: postgres
# postgres internal port is 5432
restart: always
image: tbackman/debian-cheminformatics:debian10-update2
command: ["/usr/lib/postgresql/11/bin/postgres", "-D", "/var/lib/postgresql/11/main", "-c", "config_file=/etc/postgresql/11/main/postgresql.conf"]
volumes:
- app-db-data:/var/lib/postgresql/11/main
redis:
restart: always
image: redis:3.2-alpine
# this is ClusterCAD
web:
restart: always
image: tbackman/debian-cheminformatics:debian10-update2
volumes:
- .:/clusterCAD
- static:/www/static
- media:/www/media
expose:
- "8000"
ports:
- "8888:8888"
depends_on:
- db
- redis
working_dir: /clusterCAD
command: ["./wait-for-it.sh", "db:5432", "--", "./entrypoint.sh"]
nginx:
restart: always
build: ./nginx/
ports:
- "8000:80"
volumes:
- static:/www/static
- media:/www/media
links:
- web:web
react:
build:
context: retrotide
dockerfile: Dockerfile
volumes:
- .:/retrotide/app
- /retrotide/app/node_modules
ports:
- "3000:3000"
environment:
# attempting hot-reload fix
- CHOKIDAR_USEPOLLING=true
- NODE_ENV=development
command: npm start
volumes:
app-db-data:
static:
media: