diff --git a/Joplin/docker-compose.yml b/Joplin/docker-compose.yml new file mode 100644 index 0000000..2570d09 --- /dev/null +++ b/Joplin/docker-compose.yml @@ -0,0 +1,33 @@ +version: '3' + +services: + db: + image: postgres:15 + volumes: + - ./db:/var/lib/postgresql/data + ports: + - "5433:5432" + restart: unless-stopped + environment: + - POSTGRES_PASSWORD=postgres + - POSTGRES_USER=postgres + - POSTGRES_DB=joplin + app: + image: joplin/server:latest + depends_on: + - db + ports: + - "22300:22300" + restart: unless-stopped + environment: + - APP_PORT=22300 + - APP_BASE_URL=https://joplin.treehousefullofstars.com + - DB_CLIENT=pg + - POSTGRES_PASSWORD=postgres + - POSTGRES_DATABASE=joplin + - POSTGRES_USER=postgres + - POSTGRES_PORT=5432 + - POSTGRES_HOST=db + +volumes: + joplindb: