forked from go-vikunja/vikunja
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1.33 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.33 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
services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: vikunja
POSTGRES_PASSWORD: vikunja
POSTGRES_DB: vikunja
volumes:
- vikunja-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vikunja"]
interval: 5s
timeout: 5s
retries: 10
# Vikunja ships as a single binary that serves both the API and the
# built frontend (see Dockerfile) — there is no separate frontend
# container upstream. This builds that same image from the repo's
# own Dockerfile.
api:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3456:3456"
environment:
VIKUNJA_DATABASE_TYPE: postgres
VIKUNJA_DATABASE_HOST: db
VIKUNJA_DATABASE_USER: vikunja
VIKUNJA_DATABASE_PASSWORD: vikunja
VIKUNJA_DATABASE_DATABASE: vikunja
VIKUNJA_SERVICE_JWTSECRET: change-me-local-dev-only
VIKUNJA_SERVICE_ENABLEREGISTRATION: "true"
VIKUNJA_SERVICE_PUBLICURL: "http://localhost:3456"
# /app/vikunja isn't writable by the container's non-root user; /tmp is
# (see the Dockerfile's --chown=1000:1000 --chmod=1777 on /tmp).
VIKUNJA_FILES_BASEPATH: "/tmp/files"
depends_on:
db:
condition: service_healthy
volumes:
vikunja-db: