forked from KSP-SpaceDock/SpaceDock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (81 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
88 lines (81 loc) · 1.56 KB
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
version: "3.4"
services:
db:
image: postgres:11.4
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- ./spacedock-db:/var/lib/postgresql/data
ports:
- 55432:5432
networks:
- spacedock-net
adminer:
image: adminer
ports:
- 8080:8080
networks:
- spacedock-net
redis:
image: redis:latest
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
- CONNECTION_STRING=${CONNECTION_STRING}
command: >
flask run
ports:
- 9999:9999
volumes:
- ./:/opt/spacedock
- /dev/log:/dev/log
links:
- db
- celery
networks:
- spacedock-net
celery:
image: spacedock_celery
build:
context: ./
target: celery
user: spacedock
environment:
- CONNECTION_STRING=${CONNECTION_STRING}
command: >
celery worker
--app KerbalStuff.celery:app
--loglevel=DEBUG
--concurrency=1
-B
volumes:
- /dev/log:/dev/log
links:
- redis
networks:
- spacedock-net
frontend:
image: spacedock_frontend
build: frontend
ports:
- 5080:80
- 5443:443
links:
- backend
networks:
- spacedock-net
networks:
spacedock-net:
driver: bridge