-
-
Notifications
You must be signed in to change notification settings - Fork 104
/
docker-compose.yml
58 lines (50 loc) · 1022 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
49
50
51
52
53
54
55
56
57
58
version: '3.9'
volumes:
postgres_data:
x-api: &api
build: .
environment:
C_FORCE_ROOT: "1"
PGHOST: db
PGUSER: postgres
PGPASSWORD: postgres
REDIS_URL: redis://redis:6379/0
volumes:
- .:/home/skylines/code/
depends_on:
- db
- redis
restart: on-failure
services:
db:
image: postgis/postgis:10-2.5
volumes:
- ./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
healthcheck:
test: pg_isready -U postgres
interval: 5s
redis:
image: redis
ports:
- 6379:6379
healthcheck:
test: redis-cli ping
interval: 5s
api:
<<: *api
ports:
- 5000:5000
worker:
<<: *api
command: pipenv run ./manage.py celery runworker
tracking:
<<: *api
command: pipenv run ./manage.py tracking runserver
ports:
- 5597:5597/udp