compose.yml
⎇
Raw
1services:
2 physiobase:
3 build:
4 context: .
5 dockerfile: Containerfile
6 image: localhost/physiobase:latest
7 container_name: physiobase
8 ports:
9 - "8080:8080"
10 volumes:
11 - ./data:/data
12 env_file:
13 - .env
14 environment:
15 - PHYSIOBASE_PORT=8080
16 - PHYSIOBASE_DATA_DIR=/data
17 - PHYSIOBASE_PRACTICE_NAME=PhysioBase
18 # Keep this many daily database backups in ./data/backup (0 = off)
19 - PHYSIOBASE_BACKUP_KEEP=14
20 # Uncomment when running behind an HTTPS proxy:
21 # - PHYSIOBASE_BASE_URL=https://physio.example.com
22 healthcheck:
23 test: ["CMD", "physiobase", "healthcheck"]
24 interval: 30s
25 timeout: 5s
26 start_period: 20s
27 retries: 3
28 restart: unless-stopped
29 # Time for the WAL checkpoint on shutdown
30 stop_grace_period: 30s
31