docker-compose/linkwarden/docker-compose.yml

21 lines
511 B
YAML
Raw Normal View History

2024-12-25 18:27:23 +01:00
services:
postgres:
image: postgres:16-alpine
env_file: .env
restart: always
2024-12-26 15:43:44 +01:00
mem_limit: 256m
2024-12-25 18:27:23 +01:00
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
2024-12-26 15:03:19 +01:00
restart: unless-stopped
mem_limit: 2g
2024-12-25 18:27:23 +01:00
ports:
- 127.0.0.1:3012:3000
volumes:
- ./data:/data/data
depends_on:
- postgres