M O R E
This commit is contained in:
parent
20416b2045
commit
b024a19387
1 changed files with 33 additions and 0 deletions
33
compose/hedgedoc.yml
Normal file
33
compose/hedgedoc.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
services:
|
||||
database:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
- POSTGRES_USER=hedgedoc
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
- POSTGRES_DB=hedgedoc
|
||||
volumes:
|
||||
- ${ROOT_DIR}/database:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
|
||||
app:
|
||||
image: quay.io/hedgedoc/hedgedoc:latest
|
||||
environment:
|
||||
- CMD_DB_URL=postgres://hedgedoc:${DB_PASSWORD}@database:5432/hedgedoc
|
||||
- CMD_DOMAIN=${APP_DOMAIN}
|
||||
- CMD_PORT=3000
|
||||
- CMD_URL_ADDPORT=true
|
||||
- NODE_ENV=production
|
||||
- CMD_ALLOW_ANONYMOUS=false
|
||||
- CMD_PROTOCOL_USESSL=true
|
||||
- CMD_URL_ADDPORT=false
|
||||
- CMD_ALLOW_ANONYMOUS_EDITS=true
|
||||
- CMD_DEFAULT_PERMISSION=private
|
||||
- CMD_ALLOW_EMAIL_REGISTER=false
|
||||
- CMD_ALLOW_GRAVATAR=false
|
||||
volumes:
|
||||
- ${ROOT_DIR}/uploads:/hedgedoc/public/uploads
|
||||
ports:
|
||||
- ${APP_PORT}:3000
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- database
|
Loading…
Add table
Reference in a new issue