-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 1.08 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
---
services:
dbase:
image: "postgres:13"
container_name: "dbase"
environment:
- "POSTGRES_PASSWORD=ttfd"
- "POSTGRES_USER=ttfd"
ports:
- "5433:5432"
healthcheck:
test: "pg_isready -U ttfd -d ttfd"
interval: "10s"
timeout: "30s"
retries: 3
volumes:
- "pgdata:/var/lib/postgresql/data"
api_server:
container_name: "api_server"
hostname: "api_server"
build:
context: "./server/"
dockerfile: "Dockerfile.dev"
depends_on:
- "dbase"
environment:
- "DATABASE_URI=postgresql://ttfd:ttfd@dbase/ttfd"
- "CLIENT_ID"
- "CLIENT_SECRET"
- "SERVER_VERSION=${SERVER_VERSION}"
volumes:
- "./server/:/ttfd"
ports:
- "8000:8000"
command: |
bash -c 'poetry run alembic upgrade head && poetry run admin create -u 738 -n "James Collier" -i "https://services.vib.be/api/document/profilepic-url/53" && poetry run admin promote -u 738 && poetry run hypercorn ttfd.main:app --bind "0.0.0.0:8000" --log-level=debug --reload --access-logfile=-'
volumes:
pgdata: {}