-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 877 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 877 Bytes
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
name: stargeo-dev
services:
db:
image: postgres:9.4
healthcheck:
test: [ "CMD", "pg_isready", "-U", "${PGUSER:-postgres}" ]
interval: 1s
timeout: 10s
retries: 50
environment:
- POSTGRES_PASSWORD
- POSTGRES_DB
redis:
image: redis:3
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 5s
timeout: 5s
retries: 5
app:
build: .
command: python manage.py runserver 0.0.0.0:8000
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
ports:
- 8001:8000
env_file: .env
celery:
build: .
command: celery -A stargeo worker -l info
ports:
- 8000:8000
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
env_file: .env