self-hosted/dnote/docker-compose.yml
Lorenzo Carbonell b7d0cb8f79
http
2024-05-03 17:23:35 +02:00

41 lines
826 B
YAML

version: "3"
services:
postgres:
image: postgres:11-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
networks:
- internal
volumes:
- ./dnote_data:/var/lib/postgresql/data
restart: always
dnote:
image: dnote/dnote:latest
environment:
GO_ENV: PRODUCTION
DBSkipSSL: "true"
DBHost: postgres
DBPort: 5432
DBName: ${POSTGRES_DB}
DBUser: ${POSTGRES_USER}
DBPassword: ${POSTGRES_PASSWORD}
WebURL: https://${FQDN}
OnPremise: "true"
SmtpHost:
SmtpPort:
SmtpUsername:
SmtpPassword:
DisableRegistration: "false"
depends_on:
- postgres
restart: always
networks:
- internal
networks:
internal: