-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
docker-compose.yml
96 lines (88 loc) · 1.75 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: "3.4"
services:
db:
image: postgres:11
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- ./spacedock-db:/var/lib/postgresql/data${DISABLE_DB_VOLUME}
ports:
- 55432:5432
networks:
- spacedock-net
adminer:
image: adminer
ports:
- 8080:8080
networks:
- spacedock-net
redis:
image: redis:latest
networks:
- spacedock-net
clamav:
image: clamav/clamav:latest
volumes:
- ./storage:/opt/spacedock/storage
networks:
- spacedock-net
backend:
image: spacedock_backend
build:
context: ./
target: backend-dev
user: spacedock
environment:
- FLASK_APP=KerbalStuff.app:app
- FLASK_RUN_PORT=9999
- FLASK_RUN_HOST=0.0.0.0
- FLASK_ENV=development
- FLASK_DEBUG=1
- SQLALCHEMY_WARN_20=1
- CONNECTION_STRING=${CONNECTION_STRING}
command: >
python3 -W default -m flask run
ports:
- 9999:9999
volumes:
- ./:/opt/spacedock
links:
- db
- celery
networks:
- spacedock-net
celery:
image: spacedock_celery
build:
context: ./
target: celery
user: spacedock
environment:
- CONNECTION_STRING=${CONNECTION_STRING}
command: >
celery
-A KerbalStuff.celery:app
worker
--loglevel=DEBUG
--concurrency=1
-B
links:
- redis
networks:
- spacedock-net
frontend:
image: spacedock_frontend
build: frontend
ports:
- 5080:80
- 5443:443
links:
- backend
volumes:
- ./storage:/var/www/storage
networks:
- spacedock-net
networks:
spacedock-net:
driver: bridge