26 lines
No EOL
829 B
Text
Executable file
26 lines
No EOL
829 B
Text
Executable file
services:
|
|
database:
|
|
image: postgres:13.4-alpine
|
|
environment:
|
|
- POSTGRES_USER=${DB_USER}
|
|
- POSTGRES_PASSWORD=${DB_PASS}
|
|
- POSTGRES_DB=${DB_NAME}
|
|
volumes:
|
|
- ${DATA_DIR}/database:/var/lib/postgresql/data
|
|
restart: always
|
|
app:
|
|
# Make sure to use the latest release from https://hedgedoc.org/latest-release
|
|
image: quay.io/hedgedoc/hedgedoc:1.10.0
|
|
environment:
|
|
- CMD_DB_URL=postgres://${DB_USER}:${DB_PASS}@database:5432/${DB_NAME}
|
|
- CMD_DOMAIN=${DOMAIN_NAME}
|
|
- CMD_URL_ADDPORT=${DOMAIN_ADDPORT}
|
|
- CMD_ALLOW_ORIGIN=['${DOMAIN_NAME}']
|
|
- CMD_ALLOW_EMAIL_REGISTER=false
|
|
volumes:
|
|
- ${DATA_DIR}/uploads:/hedgedoc/public/uploads
|
|
ports:
|
|
- "${IP}:${PORT}:3000"
|
|
restart: always
|
|
depends_on:
|
|
- database |