-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yaml
65 lines (62 loc) · 1.21 KB
/
docker-compose.yaml
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
services:
backend:
image: 'bamboo:latest'
build:
context: .
volumes:
- ${DATA_PATH}:/data
ports:
- "${PORT}:8000"
environment:
- FLASK_CONFIG=production
env_file:
- .env
depends_on:
- database
- redis
worker:
image: 'bamboo:latest'
build:
context: .
command: ["rq", "worker"]
volumes:
- ${DATA_PATH}:/data
environment:
- FLASK_CONFIG=production
env_file:
- .env
depends_on:
- database
- redis
database:
image: postgres:16
privileged: true
environment:
- POSTGRES_USER=${DATABASE_USERNAME}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME}
volumes:
- ${DATA_PATH}/db:/var/lib/postgresql/data
ports:
- "${DATABASE_PORT}:5432"
deploy:
resources:
limits:
memory: ${LIMIT_MEMORY_DATABASE}
restart: always
env_file:
- .env
redis:
image: redis:5.0
privileged: true
volumes:
- ${DATA_PATH}/redis:/data
ports:
- "${REDIS_PORT}:6379"
deploy:
resources:
limits:
memory: ${LIMIT_MEMORY_REDIS}
restart: always
env_file:
- .env