-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.63 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
services:
synkronus:
image: ghcr.io/opendataensemble/synkronus:latest
ports:
- "8080:8080"
environment:
PORT: "8080"
LOG_LEVEL: "info"
DB_CONNECTION: "postgres://synkronus_user:strong_password@db:5432/synkronus?sslmode=disable" # create with ~/create_synk_db demo
JWT_SECRET: "rcN76PE4cYMYZ9D3iy71eBqHsZ4feddcdAF7Zlsfom0=" # Generate a new one with: openssl rand -base64 32
ADMIN_USERNAME: "please_change_the_username"
ADMIN_PASSWORD: "change_the_password_as_well"
APP_BUNDLE_PATH: "/app/data/app-bundles"
MAX_VERSIONS_KEPT: "2"
expose:
- "8080" # in case you want to place a proxy, eg. nginx, in front of synkronus
volumes:
- appdata:/app/data # if you mount directly on the host, remember to set 1000 to owner (sudo chown -R 1000:1000 ...)
depends_on:
- db
restart: unless-stopped
healthcheck: ## This can be removed when the synkronus image is updated to support HEAD requests for /health
test: ["CMD", "wget", "-qO-", "--tries=1", "http://localhost:8080/health"]
interval: 30s
timeout: 3s
retries: 3
db:
image: postgres:17
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_USER: synkronus_user
POSTGRES_PASSWORD: strong_password # change this!
POSTGRES_DB: synkronus
volumes:
- pgdata:/var/lib/postgresql/data
expose:
- "5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U synkronus_user"]
interval: 10s
timeout: 5s
retries: 5
volumes:
pgdata:
appdata: