-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
49 lines (44 loc) · 949 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
version: '3.8'
services:
redis:
image: redis:5-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
networks:
- webnet
postgres:
image: circleci/postgres:12-postgis
environment:
POSTGRES_USER: geopuzzle
POSTGRES_PASSWORD: geopuzzle
POSTGRES_DB: geopuzzle
healthcheck:
test: ["CMD", "pg_isready -U geopuzzle"]
interval: 30s
timeout: 10s
retries: 3
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
- webnet
wsgi:
image: geopuzzle
restart: on-failure
env_file:
- .env
network_mode: host
command: gunicorn mercator.wsgi:application -b 0.0.0.0:8000
asgi:
image: geopuzzle
restart: on-failure
env_file:
- .env
network_mode: host
command: daphne mercator.asgi:application -b 0.0.0.0 -p 8001
networks:
webnet:
volumes:
pgdata: