mirror of
https://github.com/rodneyosodo/homelab.git
synced 2026-06-23 04:10:19 +00:00
bd6bb1a193
Continuous Integration / pre-commit (push) Has been cancelled
Continuous Integration / docker-compose (push) Has been cancelled
Continuous Integration / terraform (bohr) (push) Has been cancelled
Continuous Integration / terraform (galana) (push) Has been cancelled
Continuous Integration / terraform (tana) (push) Has been cancelled
Continuous Integration / terraform (turkwel) (push) Has been cancelled
Continuous Integration / terraform (yala) (push) Has been cancelled
Continuous Integration / ansible (push) Has been cancelled
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
services:
|
|
hedgedoc:
|
|
container_name: hedgedoc
|
|
image: quay.io/hedgedoc/hedgedoc:1.10.8
|
|
restart: unless-stopped
|
|
networks:
|
|
- homelab-network
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
environment:
|
|
- CMD_PORT=3050
|
|
- CMD_PROTOCOL_USESSL=true
|
|
- CMD_ALLOW_EMAIL_REGISTER=${HEDGEDOC_ALLOW_EMAIL_REGISTER}
|
|
- CMD_IMAGE_UPLOAD_TYPE=filesystem
|
|
- CMD_DOMAIN=${HEDGEDOC_DOMAIN_URL}
|
|
- CMD_SESSION_SECRET=${HEDGEDOC_SESSION_SECRET}
|
|
- CMD_DB_URL=${HEDGEDOC_POSTGRES_URL}
|
|
- NODE_ENV=production
|
|
- DEBUG=false
|
|
volumes:
|
|
- ~/docker-volumes/hedgedoc/uploads:/hedgedoc/public/uploads
|
|
ports:
|
|
- 3050:3050
|
|
depends_on:
|
|
- hedgedoc-db
|
|
|
|
hedgedoc-db:
|
|
container_name: hedgedoc-db
|
|
image: docker.io/postgres:16.1
|
|
restart: unless-stopped
|
|
networks:
|
|
- homelab-network
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
volumes:
|
|
- ~/docker-volumes/hedgedoc/db:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER=${HEDGEDOC_POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${HEDGEDOC_POSTGRES_PASSWORD}
|
|
- POSTGRES_DB=${HEDGEDOC_POSTGRES_DB}
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD-SHELL",
|
|
"pg_isready -U '${HEDGEDOC_POSTGRES_USER}' -d '${HEDGEDOC_POSTGRES_DB}'",
|
|
]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|