39 lines
896 B
YAML
39 lines
896 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=pg
|
|
- 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
|