-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 992 Bytes
/
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
version: "3.5"
services:
tracker-app:
build:
context: ./
image: "artifact_tracker_tracker-app"
ports:
- "5000:5000"
volumes:
- ./config.yaml:/app/config.yaml
- ./secrets:/app/secrets
- ./data/sql:/app/data/sql
- ./uwsgi.ini:/app/uwsgi.ini
environment:
FLASK_APP: "artifact_tracker"
FLASK_DEBUG: "true"
FLASK_THREADED: "true"
command: "uwsgi /app/uwsgi.ini"
networks:
- app
tracker-worker:
image: artifact_tracker_tracker-app:latest
command: "celery -A artifact_tracker.celery worker --loglevel=debug"
volumes:
- ./config.yaml:/app/config.yaml
- ./secrets:/app/secrets
- ./data/sql:/app/data/sql
user: nobody
links:
- tracker-db
- tracker-app
depends_on:
- tracker-db
networks:
- app
tracker-db:
image: redis:4
hostname: "artifact_tracker_redis"
networks:
- app
networks:
app:
name: artifact_tracker