Files
docker/docker-compose.yml
2022-02-12 11:00:21 +02:00

44 lines
1.1 KiB
YAML

# This is a sample docker-compose file that can be used to run Joplin Server
# along with a PostgreSQL server.
#
# All environment variables are optional. If you don't set them, you will get a
# warning from docker-compose, however the app should use working defaults.
version: '3'
services:
db:
image: postgres:13
volumes:
- ./data/postgres:/var/lib/postgresql/data
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=posgres
- POSTGRES_USER=posgres
- POSTGRES_DB=posgres
networks:
- network
app:
container_name: joplin
image: joplin/server:latest
depends_on:
- db
ports:
- "22300:22300"
restart: unless-stopped
environment:
- APP_PORT=22300
- APP_BASE_URL=https://jop.pukeko.xyz
- DB_CLIENT=pg
- POSTGRES_PASSWORD=posgres
- POSTGRES_DATABASE=posgres
- POSTGRES_USER=posgres
- POSTGRES_PORT=5432
- POSTGRES_HOST=db
networks:
- network
networks:
network:
driver: bridge