-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
107 lines (97 loc) · 2.23 KB
/
docker-compose.local.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
---
version: "3"
volumes:
assets:
pgdata:
networks:
geoapi:
services:
rabbitmq:
image: rabbitmq:3.12.6
networks:
- geoapi
environment:
- RABBITMQ_DEFAULT_USER=dev
- RABBITMQ_DEFAULT_PASS=dev
- RABBITMQ_DEFAULT_VHOST=dev
postgres:
image: mdillon/postgis:11-alpine
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- geoapi
container_name: geoapi_postgres
hostname: geoapi_postgres
environment:
- POSTGRES_PASSWORD=dev
- POSTGRES_USER=dev
- POSTGRES_DB=dev
nginx:
image: nginx
ports:
- 8888:80
volumes:
- assets:/assets
- ./local_conf/nginx.conf:/etc/nginx/nginx.conf
networks:
- geoapi
workers:
image: taccaci/geoapi-workers:local
networks:
- geoapi
volumes:
- ../:/app
- assets:/assets
environment:
- MAPILLARY_CLIENT_TOKEN=${MAPILLARY_CLIENT_TOKEN}
- FLASK_APP=/app/geoapi/app.py
- APP_ENV=local
- ASSETS_BASE_DIR=/assets
- TENANT=${TENANT}
stdin_open: true
tty: true
container_name: geoapiworkers
hostname: geoapiworkers
command: "celery -A geoapi.celery_app worker -l info"
celerybeat:
image: taccaci/geoapi-workers:local
networks:
- geoapi
volumes:
- ../:/app
- assets:/assets
environment:
- MAPILLARY_CLIENT_TOKEN=4866220476802272
- FLASK_APP=/app/geoapi/app.py
- APP_ENV=local
- ASSETS_BASE_DIR=/assets
stdin_open: true
tty: true
container_name: geoapicelerybeat
hostname: geoapicelerybeat
command: "celery -A geoapi.celery_app beat -l info"
api:
image: taccaci/geoapi:local
networks:
- geoapi
volumes:
- ../:/app
- assets:/assets
ports:
- 8000:8000
dns:
- 8.8.8.8
- 8.8.4.4
environment:
- MAPILLARY_CLIENT_TOKEN=${MAPILLARY_CLIENT_TOKEN}
- FLASK_APP=/app/geoapi/app.py
- APP_ENV=local
- ASSETS_BASE_DIR=/assets
- TENANT=${TENANT}
stdin_open: true
tty: true
container_name: geoapi
hostname: geoapi
command: "gunicorn -w 4 -b 0.0.0.0:8000 geoapi.app:app -k gevent --reload --timeout 300"
extra_hosts:
- "host.docker.internal:host-gateway"