Compare commits
6 Commits
Author | SHA1 | Date |
---|---|---|
bmen | 0c17e32613 | |
bmen | 0d70381329 | |
bmen | d0ec335f2b | |
bmen | 3809d38476 | |
bmen | f7eb11eda5 | |
bmen | e551692a0c |
|
@ -4,17 +4,16 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
webproxy:
|
default:
|
||||||
external: true
|
proxynet:
|
||||||
|
|
||||||
backend-hedgedoc:
|
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
database:
|
|
||||||
|
db:
|
||||||
# Don't upgrade PostgreSQL by simply changing the version number
|
# Don't upgrade PostgreSQL by simply changing the version number
|
||||||
# You need to migrate the Database to the new PostgreSQL version
|
# You need to migrate the Database to the new PostgreSQL version
|
||||||
image: postgres:9.6-alpine
|
image: postgres {{ hedgedoc.postgresql_version }}
|
||||||
container_name: hedgedoc-db
|
container_name: hedgedoc-db
|
||||||
#mem_limit: 256mb # version 2 only
|
#mem_limit: 256mb # version 2 only
|
||||||
#memswap_limit: 512mb # version 2 only
|
#memswap_limit: 512mb # version 2 only
|
||||||
|
@ -23,13 +22,13 @@ services:
|
||||||
# - /run/postgresql:size=512K
|
# - /run/postgresql:size=512K
|
||||||
# - /tmp:size=256K
|
# - /tmp:size=256K
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_USER: "{{ havelwerk.hedgedoc.postgresql_user }}"
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD: "{{ havelwerk.hedgedoc.postgresql_password }}"
|
||||||
- POSTGRES_DB=${POSTGRES_DB}
|
- POSTGRES_DB: "{{ havelwerk.hedgedoc.postgresql_db }}"
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/appdata/hedgedoc/db:/var/lib/postgresql/data
|
- /home/docker/data/hedgedoc/db:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- backend-hedgedoc
|
default:
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
app:
|
app:
|
||||||
|
@ -40,7 +39,7 @@ services:
|
||||||
# args:
|
# args:
|
||||||
# - "VERSION=master"
|
# - "VERSION=master"
|
||||||
# - "HEDGEDOC_REPOSITORY=https://github.com/hedgedoc/hedgedoc.git"
|
# - "HEDGEDOC_REPOSITORY=https://github.com/hedgedoc/hedgedoc.git"
|
||||||
image: quay.io/hedgedoc/hedgedoc:1.9.2
|
image: quay.io/hedgedoc/hedgedoc:{{ hedgedoc.release }}
|
||||||
container_name: hedgedoc
|
container_name: hedgedoc
|
||||||
#mem_limit: 256mb # version 2 only
|
#mem_limit: 256mb # version 2 only
|
||||||
#memswap_limit: 512mb # version 2 only
|
#memswap_limit: 512mb # version 2 only
|
||||||
|
@ -56,7 +55,7 @@ services:
|
||||||
# - sqlite:///data/sqlite.db (NOT RECOMMENDED)
|
# - sqlite:///data/sqlite.db (NOT RECOMMENDED)
|
||||||
# - For details see the official sequelize docs: http://docs.sequelizejs.com/en/v3/
|
# - For details see the official sequelize docs: http://docs.sequelizejs.com/en/v3/
|
||||||
# - CMD_DB_URL=postgres://hedgedoc:password@database:5432/hedgedoc
|
# - CMD_DB_URL=postgres://hedgedoc:password@database:5432/hedgedoc
|
||||||
- CMD_DOMAIN=md.bmen.cc
|
- CMD_DOMAIN=${URL}
|
||||||
- CMD_URL_ADDPORT=false
|
- CMD_URL_ADDPORT=false
|
||||||
- CMD_PROTOCOL_USESSL=true
|
- CMD_PROTOCOL_USESSL=true
|
||||||
#- CMD_EMAIL=false
|
#- CMD_EMAIL=false
|
||||||
|
@ -65,11 +64,11 @@ services:
|
||||||
- CMD_ALLOW_ANONYMOUS_EDITS=true
|
- CMD_ALLOW_ANONYMOUS_EDITS=true
|
||||||
- CMD_DEFAULT_PERMISSION=limited
|
- CMD_DEFAULT_PERMISSION=limited
|
||||||
- CMD_IMAGE_UPLOAD_TYPE=filesystem
|
- CMD_IMAGE_UPLOAD_TYPE=filesystem
|
||||||
- CMD_DB_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@hedgedoc-db:5432/${POSTGRES_DB}
|
- CMD_DB_URL=postgres://{{ havelwerk.hedgedoc.postgresql_user }}:{{ havelwerk.hedgedoc.postgresql_password }}@hedgedoc-db:5432/{{ havelwerk.hedgedoc.postgresql_db }}
|
||||||
- CMD_ALLOW_PDF_EXPORT=true
|
- CMD_ALLOW_PDF_EXPORT=true
|
||||||
- CMD_ALLOW_FREEURL=true
|
- CMD_ALLOW_FREEURL=true
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/appdata/hedgedoc/uploads:/hedgedoc/public/uploads
|
- /home/docker/data/hedgedoc:/hedgedoc/public/uploads
|
||||||
# ports:
|
# ports:
|
||||||
# Ports that are published to the outside.
|
# Ports that are published to the outside.
|
||||||
# The latter port is the port inside the container. It should always stay on 3000
|
# The latter port is the port inside the container. It should always stay on 3000
|
||||||
|
@ -79,8 +78,10 @@ services:
|
||||||
# - "127.0.0.1:3000:3000"
|
# - "127.0.0.1:3000:3000"
|
||||||
# - "3000:3000"
|
# - "3000:3000"
|
||||||
networks:
|
networks:
|
||||||
- webproxy
|
default:
|
||||||
- backend-hedgedoc
|
proxynet:
|
||||||
|
aliases:
|
||||||
|
- hedgedoc
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- db
|
Loading…
Reference in New Issue