New container - Joplin
This commit is contained in:
43
docker-compose.yml
Normal file
43
docker-compose.yml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user