-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.3 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
# source: https://github.com/briancappello/flask-unchained-react-spa/blob/master/docker-compose.yaml
---
version: '2.3'
services:
postgres:
image: postgres:9.6.5
ports:
- 5442:5432
volumes:
- ./docker/postgres/data:/var/lib/postgresql
- ./docker/postgres/init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
zillean_backend:
build:
context: .
dockerfile: ./Dockerfile
links:
- postgres
- redis
environment:
- FLASK_DATABASE_HOST=postgres
- FLASK_REDIS_HOST=redis
entrypoint:
- /flask-entrypoint.sh
ports:
- 5000:5000
# volumes:
# - ./zillean_backend:/flask/src
redis:
image: redis:3.2-alpine
command: redis-server
volumes:
- ./docker/redis/data:/data
expose:
- 6379
celery_worker:
build:
context: .
dockerfile: ./Dockerfile
environment:
- FLASK_REDIS_HOST=redis
- FLASK_MAIL_HOST=mailhog
- FLASK_MAIL_PORT=1025
entrypoint:
- /celery-worker-entrypoint.sh
volumes:
- ./zillean_backend:/flask/src
celery_beat:
build:
context: .
dockerfile: ./Dockerfile
environment:
- FLASK_REDIS_HOST=redis
entrypoint:
- /celery-beat-entrypoint.sh
volumes:
- ./zillean_backend:/flask/src