-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.37 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
44
45
46
47
48
49
50
51
52
53
services:
db:
image: postgis/postgis:17-3.5
restart: always
healthcheck:
test: ["CMD", "pg_isready", "-U", "flugbuech"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_DB: flugbuech
POSTGRES_USER: flugbuech
POSTGRES_HOST_AUTH_METHOD: trust
api:
build: .
restart: always
ports:
- "8000"
links:
- db
depends_on:
db:
condition: service_healthy
restart: true
volumes:
- frontend-static:/static
environment:
ROCKET_PROFILE: release
ROCKET_ADDRESS: "0.0.0.0"
ROCKET_PORT: 8000
ROCKET_LOG_LEVEL: normal
# IMPORTANT: Change the secret key below in production!
# You can generate it with `openssl rand -base64 32`.
ROCKET_SECRET_KEY: "2WMWUpOjLnmn39PIAifL4QXxGOsyyf1U17YTpOfoLJ4="
DATABASE_URL: postgres://flugbuech@db/flugbuech
ROCKET_DATABASES: '{flugbuech={url="postgres://flugbuech@db/flugbuech"}}'
# Optional self-hosted, GDPR compliant, non-privacy-invading visitor stats
#PLAUSIBLE_DOMAIN: example.com
#PLAUSIBLE_URL: https://example.com/plausible.js
web:
image: docker.io/nginx:1.29
ports:
- "8080:80"
links:
- "api:api"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- frontend-static:/flugbuech/static:ro
volumes:
frontend-static: