forked from flaskbb/flaskbb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (51 loc) · 1.08 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
services:
flaskbb:
image: flaskbb:latest
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- network
ports:
- "5000:5000"
celery:
image: flaskbb:latest
command: ["flaskbb", "--config", "flaskbb.cfg", "celery", "worker"]
depends_on:
redis:
condition: service_healthy
networks:
- network
postgres: # https://hub.docker.com/_/postgres
image: postgres:latest
environment:
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: ["CMD", "psql", "--user", "postgres", "--list"]
interval: 15s
timeout: 5s
networks:
- network
volumes:
- type: volume
source: postgres
target: /var/lib/postgresql/data
redis: # https://hub.docker.com/_/redis
image: redis:latest
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 15s
timeout: 5s
networks:
- network
volumes:
- type: volume
source: redis
target: /data
networks:
network:
volumes:
postgres:
redis: