Add container names and healthcheck to Docker Compose configuration

This commit is contained in:
Edgar P. Burkhart 2025-05-16 15:45:12 +02:00
parent 04a6212cd7
commit dcc0057f6e
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -1,11 +1,13 @@
services:
postgres:
container_name: linkwarden-db
image: postgres:17-alpine
env_file: stack.env
restart: always
volumes:
- /docker/linkwarden/pgdata:/var/lib/postgresql/data
linkwarden:
container_name: linkwarden
env_file: stack.env
environment:
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
@ -16,10 +18,13 @@ services:
- ${PORT-3000}:${PORT-3000}
volumes:
- /docker/linkwarden/data:/data/data
healthcheck:
test: ["/usr/bin/curl", "--silent", "--fail", "http://localhost:${PORT-3000}/"]
depends_on:
- postgres
- meilisearch
meilisearch:
container_name: linkwarden-meilisearch
image: getmeili/meilisearch:v1.14
restart: always
env_file: