-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yml
58 lines (55 loc) · 1.75 KB
/
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
volumes:
db:
services:
db:
image: postgres:16
environment:
- PGUSER=aurora
- POSTGRES_USER=aurora
- POSTGRES_PASSWORD=password
- POSTGRES_DB=aurora
redis:
image: redis:7
restart: unless-stopped
app:
image: unicef/hope-aurora:2.0-dist
stdin_open: true
tty: true
environment:
- ADMIN_PASSWORD=password
- ALLOWED_HOSTS=app,localhost,127.0.0.1
- CACHE_URL=redis://redis:6379/1?client_class=django_redis.client.DefaultClient
- CACHE_DEFAULT=redis://redis:6379/2
- CELERY_BROKER_URL=redis://redis:6379/9
- CSRF_COOKIE_SECURE=False
- CSRF_TRUSTED_ORIGINS=http://localhost:8000,http://localhost
- DATABASE_URL=postgres://aurora:password@db:5432/aurora
- DEFAULT_ORGANIZATION=UNICEF
- DEBUG=true
- DJANGO_ADMIN_URL=admin/
- FERNET_KEY=3bfbbad7d5e149e9b313fd47d33db5e6
- MEDIA_ROOT=/var/storage/media/
- SECRET_KEY=super_secret_key_just_for_development_that_needs_to_be_more_than_fifty_characters
- SECURE_HSTS_PRELOAD=0
- SECURE_SSL_REDIRECT=False
- SESSION_COOKIE_DOMAIN=localhost:8000
- SESSION_COOKIE_SECURE=False
- SOCIAL_AUTH_REDIRECT_IS_HTTPS=False
- STORAGE_STATIC=django.core.files.storage.FileSystemStorage
- STORAGE_MEDIA=django.core.files.storage.FileSystemStorage
- STORAGE_DEFAULT=django.core.files.storage.FileSystemStorage
- STATIC_ROOT=/var/storage/static/
- STATIC_URL=/static/
- USE_HTTPS=false
- USE_X_FORWARDED_HOST=false
# build:
# context: ./
# dockerfile: ./docker/Dockerfile
# target: dev
ports:
- "8000:8000" # expose nginx here
# - "8000:8000"
depends_on:
- db
- redis