-
Notifications
You must be signed in to change notification settings - Fork 13
/
compose.yaml
49 lines (49 loc) · 1.35 KB
/
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
43
44
45
46
47
48
49
services:
app:
build: .
environment:
DATABASE_URL: postgresql://cashflow:cashflow@db:5432/cashflow
DEBUG: "True"
LOGIN_KEY: super_secret
SPAM_API_KEY: super_secret
SEND_EMAILS: "False"
PLS_URL: https://pls.datasektionen.se
LOGIN_API_URL: http://login:7002
LOGIN_FRONTEND_URL: http://localhost:7002
PYTHONUNBUFFERED: 1
BUDGET_URL: https://budget.datasektionen.se
init: true
ports:
- 8000:8000
volumes:
- ./media:/app/media
develop:
watch:
- path: .
target: /app
action: sync
- path: Pipfile
action: rebuild
command: sh -c "pipenv run ./manage.py migrate && pipenv run ./manage.py runserver 0.0.0.0:8000"
depends_on:
db:
condition: service_healthy
db:
image: postgres:14
environment:
POSTGRES_USER: cashflow
POSTGRES_PASSWORD: cashflow
POSTGRES_DB: cashflow
healthcheck:
test: ["CMD", "pg_isready", "-U", "cashflow"]
interval: 2s
timeout: 2s
retries: 3
login:
image: ghcr.io/datasektionen/nyckeln-under-dorrmattan
ports:
- 7002:7002
environment:
# Since we're using the real pls, it's nice to use some user with a lot of privileges. Putting
# Melvin here since he's treasurer at the time of writing.
KTH_ID: melvinj