modified
This commit is contained in:
26
.env
Normal file
26
.env
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# =============================================================================
|
||||||
|
# PRODUCTION CONFIG EXAMPLE
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# By default it will use SQLite, but that's mostly to test and evaluate the
|
||||||
|
# server. So you'll want to specify db connection settings to use Postgres.
|
||||||
|
# =============================================================================
|
||||||
|
#
|
||||||
|
APP_BASE_URL=https://joplin.zinomedia.de
|
||||||
|
APP_PORT=22300
|
||||||
|
#
|
||||||
|
# DB_CLIENT=pg
|
||||||
|
POSTGRES_PASSWORD=7UN@nN9cKdz6NFN&
|
||||||
|
POSTGRES_DATABASE=joplin
|
||||||
|
POSTGRES_USER=joplin
|
||||||
|
POSTGRES_PORT=5432
|
||||||
|
# POSTGRES_HOST=localhost
|
||||||
|
|
||||||
|
# =============================================================================
|
||||||
|
# DEV CONFIG EXAMPLE
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# Example of local config, for development. In dev mode, you would usually use
|
||||||
|
# SQLite so database settings are not needed.
|
||||||
|
# =============================================================================
|
||||||
|
#
|
||||||
|
# APP_BASE_URL=http://localhost:22300
|
||||||
|
# APP_PORT=22300
|
||||||
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Ignore everything in the volumes/html directory
|
||||||
|
volumes/*
|
||||||
|
|
||||||
|
# Do not ignore a special file name
|
||||||
|
!.gitkeep
|
||||||
38
docker-compose.yml
Normal file
38
docker-compose.yml
Normal 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
|
||||||
0
volumes/.gitkeep
Normal file
0
volumes/.gitkeep
Normal file
Reference in New Issue
Block a user