28 lines
656 B
YAML
28 lines
656 B
YAML
version: "3.5"
|
|
services:
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
env_file: .env
|
|
restart: always
|
|
volumes:
|
|
- ./pgdata:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
|
|
|
|
linkwarden:
|
|
env_file: .env
|
|
environment:
|
|
- DATABASE_URL=${DATABASE_URL}
|
|
restart: always
|
|
# build: . # uncomment this line to build from source
|
|
image: ghcr.io/linkwarden/linkwarden:latest # comment this line to build from source
|
|
ports:
|
|
- 5000:3000
|
|
volumes:
|
|
- ./data:/data/data
|
|
depends_on:
|
|
- postgres |