-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.04 KB
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
services:
db:
image: postgres:17.9
environment:
POSTGRES_DB: budgeting
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${PS_PASSWORD:-postgres}
ports:
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
- ./backups:/app/backups
- ${HOME}/.ipython:/root/.ipython
ports:
- "8000:8000"
environment:
PYTHONDONTWRITEBYTECODE: "1"
POSTGRES_DB: budgeting
POSTGRES_USER: postgres
PS_PASSWORD: ${PS_PASSWORD:-postgres}
POSTGRES_HOST: db
POSTGRES_PORT: 5432
GDRIVE_CLIENT_ID: ${GDRIVE_CLIENT_ID:-}
GDRIVE_CLIENT_SECRET: ${GDRIVE_CLIENT_SECRET:-}
GDRIVE_REFRESH_TOKEN: ${GDRIVE_REFRESH_TOKEN:-}
GDRIVE_FOLDER_ID: ${GDRIVE_FOLDER_ID:-}
depends_on:
db:
condition: service_healthy
volumes:
pgdata: