This repository has been archived by the owner on Sep 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
149 lines (138 loc) · 3.13 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
version: '3'
services:
python-base:
command: bash -c "exit 0"
environment:
- DJANGO_SETTINGS_MODULE=backend.settings.dev
build:
context: .
dockerfile: Dockerfile-python-base
image: python-base:latest
volumes:
- ./backend:/usr/src/app
migrate:
command: python3 manage.py migrate --noinput
environment:
- DJANGO_SETTINGS_MODULE=backend.settings.dev
- DB_PASSWORD=SuperSecurePassword
- DB_USER=postgres
build:
context: .
volumes:
- ./backend:/usr/src/app
depends_on:
- python-base
- psql
- wott-static
dash-dev:
hostname: dash-dev0
environment:
- DJANGO_SETTINGS_MODULE=backend.settings.dev
- DB_PASSWORD=SuperSecurePassword
- DB_USER=postgres
- DATASTORE_KEY_JSON
build:
context: .
args:
- CIRCLE_SHA1
image: wott-api:latest
volumes:
- ./backend:/usr/src/app
ports:
- '8000:8000'
depends_on:
- psql
- migrate
- wott-static
api-dev:
hostname: api-dev0
environment:
- DJANGO_SETTINGS_MODULE=backend.settings.dev
- DB_PASSWORD=SuperSecurePassword
- DB_USER=postgres
- DATASTORE_KEY_JSON
build:
context: .
volumes:
- ./backend:/usr/src/app
ports:
- '8001:8000'
depends_on:
- psql
- migrate
- python-base
mtls-api-dev:
hostname: mtls-api-dev0
environment:
- DJANGO_SETTINGS_MODULE=backend.settings.dev
- DB_PASSWORD=SuperSecurePassword
- DB_USER=postgres
- DATASTORE_KEY_JSON
build:
context: .
volumes:
- ./backend:/usr/src/app
ports:
- '8002:8000'
depends_on:
- psql
- migrate
- python-base
wott-static:
hostname: wott-static
build:
context: .
dockerfile: Dockerfile-nginx
args:
DJANGO_SETTINGS_MODULE: backend.settings.dev
image: wott-static:latest
ports:
- '8003:80'
depends_on:
- python-base
psql:
environment:
- POSTGRES_DB=wott-backend
- POSTGRES_PASSWORD=SuperSecurePassword
image: postgres:alpine
volumes:
- db-data:/var/lib/postgresql/data
redis:
image: redis:5.0-alpine
command: redis-server
celery:
environment:
- DJANGO_SETTINGS_MODULE=backend.settings.dev
- DB_PASSWORD=SuperSecurePassword
- DB_USER=postgres
build:
context: .
command: celery worker -A backend -O fair -l error --concurrency=4 --time-limit=65 --soft-time-limit=60 --pidfile="/tmp/celery.pid"
volumes:
- ./backend:/usr/src/app
depends_on:
- psql
- migrate
- redis
- python-base
celery-beat:
environment:
- DJANGO_SETTINGS_MODULE=backend.settings.dev
- DB_PASSWORD=SuperSecurePassword
- DB_USER=postgres
build:
context: .
command: celery beat -A backend -l error --pidfile="/tmp/celerybeat.pid" -s "/tmp/celerybeat-schedule"
volumes:
- ./backend:/usr/src/app
depends_on:
- psql
- migrate
- redis
- python-base
volumes:
db-data:
networks:
default:
external:
name: wott