feat(dc): move postgres to external db
This commit is contained in:
parent
d06a88663c
commit
4423b8980f
1 changed files with 0 additions and 23 deletions
|
@ -1,20 +1,4 @@
|
||||||
services:
|
services:
|
||||||
db:
|
|
||||||
image: postgres:16.9@sha256:47053cd4ee3f096afc744e53e3280de7b29b3670d2f2196c2acc0c6470923c99
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- db-data:/var/lib/postgresql/data
|
|
||||||
environment:
|
|
||||||
- POSTGRES_PASSWORD=${DC_VIKUNJA_POSTGRES_PASSWORD:?}
|
|
||||||
- POSTGRES_DB=${DC_VIKUNJA_POSTGRES_DB:-db}
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
networks:
|
|
||||||
- vikunja
|
|
||||||
|
|
||||||
vikunja:
|
vikunja:
|
||||||
image: vikunja/vikunja:0.24.6@sha256:ed1f3ed467fecec0b57e9de7bc6607f8bbcbb23ffced6a81f5dfefc794cdbe3b
|
image: vikunja/vikunja:0.24.6@sha256:ed1f3ed467fecec0b57e9de7bc6607f8bbcbb23ffced6a81f5dfefc794cdbe3b
|
||||||
environment:
|
environment:
|
||||||
|
@ -41,20 +25,13 @@ services:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.vikunja.rule=Host(`${DC_VIKUNJA_HOSTNAME:?}`)"
|
- "traefik.http.routers.vikunja.rule=Host(`${DC_VIKUNJA_HOSTNAME:?}`)"
|
||||||
- "traefik.http.routers.vikunja.entrypoints=websecure"
|
- "traefik.http.routers.vikunja.entrypoints=websecure"
|
||||||
depends_on:
|
|
||||||
db:
|
|
||||||
condition: service_healthy
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- vikunja
|
|
||||||
- traefik
|
- traefik
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
vikunja:
|
|
||||||
external: false
|
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db-data:
|
|
||||||
files:
|
files:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue