commit af50faeeffa22a2e998a3ed30ec3f64c3bb3cc09 Author: Matan Horovitz Date: Sat Feb 12 11:00:21 2022 +0200 New container - Joplin diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..82cd471 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,43 @@ + +# 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