-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
85 lines (79 loc) · 1.98 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
services:
app: &app
build:
context: .
target: dev
ports:
- "8001:8000"
depends_on:
postgis:
condition: service_healthy
environment:
- SECRET_KEY=insecure
- DJANGO_DEBUG=false
- DATABASE_HOST=postgis
- DATABASE_PORT=5432
- DATABASE_USER=signals-gisib
- DATABASE_PASSWORD=insecure
- CORS_ALLOW_ALL_ORIGINS=False
- CORS_ALLOWED_ORIGINS=http://127.0.0.1:8001,http://localhost:8001,http://0.0.0.0:8001
- GISIB_BASE_URI=
- GISIB_USERNAME=
- GISIB_PASSWORD=
- GISIB_APIKEY=
- APPLICATION_INSIGHTS_CONNECTION_STRING=
volumes:
- ./app:/app/
- ./docker-compose/run.sh:/run.sh
command: /run.sh
postgis:
image: postgis/postgis:12-3.2-alpine
ports:
- "54321:5432"
environment:
POSTGRES_DB: signals-gisib
POSTGRES_USER: signals-gisib
POSTGRES_PASSWORD: insecure
volumes:
- postgis-data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "sh -c 'pg_isready -U signals-gisib -d signals-gisib'" ]
interval: 10s
timeout: 5s
retries: 5
celery: &celery
<<: *app
ports:
- "8002:8000"
depends_on:
postgis:
condition: service_healthy
rabbitmq:
condition: service_healthy
command: celery -A main worker -l debug
celery-beat:
<<: *celery
ports:
- "8003:8000"
command: celery -A main beat -l debug --pidfile /tmp/celerybeat.pid
rabbitmq:
image: rabbitmq:latest
ports:
- "5673:5672"
environment:
- RABBITMQ_ERLANG_COOKIE='secret cookie here'
- RABBITMQ_DEFAULT_USER=signals-gisib-ams
- RABBITMQ_DEFAULT_PASS=insecure
- RABBITMQ_DEFAULT_VHOST=vhost
healthcheck:
test: [ "CMD-SHELL", "rabbitmqctl status" ]
interval: 10s
timeout: 5s
retries: 5
flower:
<<: *celery
ports:
- "5566:5566"
command: celery -A main flower --port=5566
volumes:
postgis-data: