Repository navigation
Expand file tree
/
Copy pathcompose.yml
More file actions
62 lines (59 loc) · 1.58 KB
/
Copy pathcompose.yml
File metadata and controls
62 lines (59 loc) · 1.58 KB
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
x-env: &env
environment:
- ADMIN_EMAIL=admin@example.com
- ADMIN_PASSWORD=password
- ALLOWED_HOSTS=*
- CACHE_DEFAULT=redis://redis:6379/0
- CELERY_BROKER_URL=redis://host.docker.internal:6379/0
- CSRF_COOKIE_SECURE=False
- CSRF_TRUSTED_ORIGINS=http://localhost:8000
- DATABASE_URL=postgres://postgres:password@db:5432/aurora
- DEBUG=1
- DEFAULT_ORGANIZATION=UNICEF
- DJANGO_ADMIN_URL=admin/
- DJANGO_SETTINGS_MODULE=aurora.config.settings
- FERNET_KEY=123
- LOGGING_LEVEL=DEBUG
- POSTGRES_DB=aurora
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_USER=postgres
- SECRET_KEY=super-secret-key-just-for-testing
- SECURE_HSTS_PRELOAD=false
- SESSION_COOKIE_DOMAIN=http://localhost:8000
- SESSION_COOKIE_SECURE=false
- SOCIAL_AUTH_REDIRECT_IS_HTTPS=False
services:
aurora:
image: unicef/hope-aurora:local
<<: [ *env ]
ports:
- 8000:8000
platform: linux/amd64
# healthcheck:
# test: [ "CMD", "curl", "-f", "http://localhost:8000/healthcheck" ]
# interval: 10s
# timeout: 5s
# retries: 5
# command: "sh /init-scripts/restore.sh"
# volumes:
# - ./~data:/init-scripts
depends_on:
- db
- redis
db:
image: postgres:15
<<: [ *env ]
restart: always
platform: linux/amd64
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres", "-d", "aurora" ]
start_period: 5s
start_interval: 1s
interval: 5s
timeout: 4s
retries: 5
redis:
image: redis
platform: linux/amd64
<<: [ *env ]
restart: always