-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (56 loc) · 1.05 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
version: "3.8"
networks:
default:
services:
db:
image: postgres:12
env_file:
- .env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
networks:
- default
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
queue:
image: rabbitmq:3
networks:
- default
backend:
build:
context: ./backend
dockerfile: backend.dockerfile
args:
INSTALL_DEV: ${INSTALL_DEV-false}
image: 'ssgui-backend:${TAG-latest}'
depends_on:
- db
env_file:
- .env
networks:
- default
celeryworker:
build:
context: ./backend
dockerfile: celeryworker.dockerfile
args:
INSTALL_DEV: ${INSTALL_DEV-false}
deploy:
resources:
limits:
memory: '4G'
cpus: '2'
image: 'ssgui-worker:${TAG-latest}'
depends_on:
- db
- queue
env_file:
- .env
networks:
- default
frontend:
build:
context: ./frontend
image: 'ssgui:${TAG-latest}'
volumes:
app-db-data: