-
Notifications
You must be signed in to change notification settings - Fork 1
/
gh-docker-compose.yml
68 lines (64 loc) · 1.76 KB
/
gh-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
68
version: '3.2'
services:
db:
image: postgis/postgis:13-3.1-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- postgres-data13:/var/lib/postgresql/data
redis:
image: redis:6-alpine
volumes:
- redis-data:/data
web:
image: $DOCKER_IMAGE_BACKEND
# To attach to container with stdin `docker attach <container_name>`
# Used for python debugging.
stdin_open: true
tty: true
extra_hosts:
- 'host.docker.internal:host-gateway'
environment:
CI: "true"
DJANGO_APP_ENVIRONMENT: development
DJANGO_APP_TYPE: web
DJANGO_DEBUG: "true"
DJANGO_SECRET_KEY: INSECURE_DJANGO_SECRET_KEY
# -- Domain configurations
DJANGO_ALLOWED_HOSTS: "*"
APP_DOMAIN: localhost:800
APP_HTTP_PROTOCOL: http
APP_FRONTEND_HOST: localhost:3000
SESSION_COOKIE_DOMAIN: localhost
CSRF_COOKIE_DOMAIN: localhost
# Database config
DB_HOST: db
DB_PORT: 5432
DB_NAME: postgres
DB_USER: postgres
DB_PASSWORD: postgres
# Redis config
CELERY_BROKER_URL: redis://redis:6379/0
CACHE_REDIS_URL: redis://redis:6379/1
TEST_CACHE_REDIS_URL: redis://redis:6379/11
# Email config
EMAIL_HOST: fake
EMAIL_PORT: 1025
EMAIL_HOST_USER: fake
EMAIL_HOST_PASSWORD: fake
DEFAULT_FROM_EMAIL: alert-hub-dev <[email protected]>
# Misc
HCAPTCHA_SECRET: "0x0000000000000000000000000000000000000000"
HCAPTCHA_SITEKEY: "10000000-ffff-ffff-ffff-000000000001"
volumes:
- ./:/code
- ./ci-share/:/ci-share/
# - ./coverage/:/code/coverage/
depends_on:
- db
- redis
volumes:
postgres-data13:
redis-data: