-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
34 lines (32 loc) · 1.22 KB
/
docker-compose.yaml
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
# Notes:
# - 'volumes' are not respected by Heroku.
# - Exposed ports are not respected by Heroku either. Apps must get $PORT instead.
version: '3'
services:
registration:
build: ./services/registration
volumes:
- ./services/registration:/usr/src/app/registration:ro # Copy local source code as read only.
working_dir: /usr/src/app/registration
environment: # Config settings to load AFTER the entry point of the container.
- PYTHONPATH="$PYTHONPATH:/usr/src/app:/usr/local/lib:/usr/local/bin"
- DEPLOYMENT_MODE=prod
- DATABASE_URL=postgresql://postgres:password@postgres:5432/cruzhacks_db
- IS_WHITELIST_ENABLED=False
- MAILCHIMP_ATTENDEE_LIST=sourdough
ports:
- "8000:8000"
restart: always
depends_on:
- postgres
postgres:
image: postgres:10-alpine
volumes:
# Allows persistent data by syncing the local dir with the container's dir.
- ./postgres/data:/var/lib/postgresql/data # /var/lib/postgresql/data is the default for PGDATA variable.
environment:
- POSTGRES_PASSWORD=password # This is only used for local testing so it doesn't matter.
- POSTGRES_DB=cruzhacks_db
ports:
- "5432:5432"
restart: always