This commit is contained in:
zino
2023-11-28 20:52:28 +01:00
parent 304a55e5de
commit 2600be7b53
4 changed files with 69 additions and 0 deletions

38
docker-compose.yml Normal file
View File

@@ -0,0 +1,38 @@
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