-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
67 lines (61 loc) · 1.52 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
services:
db:
image: postgis/postgis:14-3.4
environment:
POSTGRES_USER: 'brostar'
POSTGRES_PASSWORD: 'brostar'
POSTGRES_DB: 'brostar'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U brostar"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:latest
expose:
- 6379
celery:
environment:
# # Can be set in .env, we'll pass them on. settings.py has some defaults.
- FIELD_ENCRYPTION_KEY
- SECRET_KEY
- NENS_AUTH_ISSUER
- NENS_AUTH_CLIENT_ID
- NENS_AUTH_CLIENT_SECRET
build: .
command: celery -A brostar_api worker --loglevel=INFO
volumes:
- .:/code
- ./media:/media
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
web:
environment:
# # Can be set in .env, we'll pass them on. settings.py has some defaults.
- FIELD_ENCRYPTION_KEY
- SECRET_KEY
- NENS_AUTH_ISSUER
- NENS_AUTH_CLIENT_ID
- NENS_AUTH_CLIENT_SECRET
build: .
# command: "bin/gunicorn -b 0.0.0.0:${PORT:-5000} --workers=3 --timeout 90 --preload --max-requests=10000 trs.wsgi"
command: "python manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
volumes:
- .:/code
- ./media:/media
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
celery:
condition: service_started
volumes:
pgdata: