docker-compose/linkwarden/docker-compose.yml
2024-12-26 15:43:44 +01:00

21 lines
511 B
YAML

services:
postgres:
image: postgres:16-alpine
env_file: .env
restart: always
mem_limit: 256m
volumes:
- ./pgdata:/var/lib/postgresql/data
linkwarden:
env_file: .env
environment:
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
image: ghcr.io/linkwarden/linkwarden:latest
restart: unless-stopped
mem_limit: 2g
ports:
- 127.0.0.1:3012:3000
volumes:
- ./data:/data/data
depends_on:
- postgres