Files
docker-joplin-server/docker-compose.yml
2023-11-28 21:41:32 +01:00

39 lines
906 B
YAML

version: "3.8"
services:
joplin-postgres:
image: postgres:16
container_name: joplin-postgres
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DATABASE}
networks:
- web
joplin:
image: joplin/server:latest
container_name: joplin
depends_on:
- joplin-postgres
restart: unless-stopped
environment:
- APP_PORT=${APP_PORT}
- APP_BASE_URL=${APP_BASE_URL}
- DB_CLIENT=${DB_CLIENT}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DATABASE=${POSTGRES_DATABASE}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_HOST=joplin-postgres
networks:
- web
networks:
web:
external: true
name: web