-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yaml
42 lines (40 loc) · 1017 Bytes
/
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
35
36
37
38
39
40
41
42
version: '3'
services:
fittrak_db:
image: postgres:11
ports:
- "5432:5432"
restart: always
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- ./db:/var/lib/postgresql/data
api:
build:
context: .
command: ["sh", "scripts/start-dev.sh"]
ports:
- "8000:8000"
volumes:
- "./fittrak:/usr/src/app/fittrak"
- "./ipython-data:/root/.ipython/profile_default"
environment:
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
- DJANGO_HASHIDS_SALT=${DJANGO_HASHIDS_SALT}
- DJANGO_DEBUG=False
- DB_ENGINE=django.db.backends.postgresql
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_PORT=${DB_PORT}
- DB_HOST=${DB_HOST}
- SENTRY_DSN=${SENTRY_DSN}
- SENTRY_ENV=${SENTRY_ENV}
- SENTRY_RELEASE=${SENTRY_RELEASE}
depends_on:
- fittrak_db
volumes:
fittrak:
ipython-data: