-
Notifications
You must be signed in to change notification settings - Fork 0
/
gh-docker-compose.yml
62 lines (59 loc) · 1.66 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
services:
db:
image: postgres:15-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"
APP_ENVIRONMENT: CI
APP_TYPE: web
DJANGO_DEBUG: "true"
DJANGO_SECRET_KEY: RANDOM_KEY
# -- Domain configurations
DJANGO_ALLOWED_HOSTS: '*'
APP_DOMAIN: localhost:8000
APP_HTTP_PROTOCOL: http
APP_FRONTEND_HOST: http://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_REDIS_URL: ${CELERY_REDIS_URL:-redis://redis:6379/0}
DJANGO_CACHE_REDIS_URL: ${DJANGO_CACHE_REDIS_URL:-redis://redis:6379/1}
# Email config
# EMAIL_HOST: ${EMAIL_HOST:-mailpit}
# EMAIL_PORT: ${EMAIL_PORT:-1025}
# EMAIL_HOST_USER: ${EMAIL_HOST_USER:-mailpit}
# EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD:-mailpit}
EMAIL_FROM: ${EMAIL_FROM:-togglecorp-dev <[email protected]>}
volumes:
- ./:/code
- ./ci-share/:/ci-share/
# - ./coverage/:/code/coverage/
depends_on:
- db
- redis
volumes:
postgres-data13:
redis-data: