mirror of
https://github.com/atareao/self-hosted.git
synced 2024-09-21 00:00:09 +02:00
41 lines
818 B
YAML
41 lines
818 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: ${FQDN}
|
|
OnPremise: "true"
|
|
SmtpHost:
|
|
SmtpPort:
|
|
SmtpUsername:
|
|
SmtpPassword:
|
|
DisableRegistration: "false"
|
|
depends_on:
|
|
- postgres
|
|
restart: always
|
|
networks:
|
|
- internal
|
|
|
|
networks:
|
|
internal:
|