61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
|
|
version: "3.8"
|
||
|
|
|
||
|
|
services:
|
||
|
|
database:
|
||
|
|
container_name: {{ customer }}-documenso-db
|
||
|
|
image: postgres:15
|
||
|
|
restart: always
|
||
|
|
env_file:
|
||
|
|
- /opt/letsbe/env/documenso.env
|
||
|
|
environment:
|
||
|
|
- POSTGRES_USER={{ documenso_postgres_user }}
|
||
|
|
- POSTGRES_PASSWORD={{ documenso_postgres_password }}
|
||
|
|
- POSTGRES_DB=documenso_db
|
||
|
|
healthcheck:
|
||
|
|
test: ['CMD-SHELL', 'pg_isready -U {{ documenso_postgres_user }} -d documenso_db']
|
||
|
|
interval: 10s
|
||
|
|
timeout: 5s
|
||
|
|
retries: 5
|
||
|
|
volumes:
|
||
|
|
- {{ customer }}-documenso-database:/var/lib/postgresql/data
|
||
|
|
- {{ customer }}-documenso-backups:/tmp/backups
|
||
|
|
networks:
|
||
|
|
{{ customer }}-documenso:
|
||
|
|
ipv4_address: 172.20.29.2
|
||
|
|
ports:
|
||
|
|
- "127.0.0.1:5432:5432"
|
||
|
|
|
||
|
|
documenso:
|
||
|
|
container_name: {{ customer }}-documenso-app
|
||
|
|
image: documenso/documenso:latest
|
||
|
|
restart: always
|
||
|
|
depends_on:
|
||
|
|
database:
|
||
|
|
condition: service_healthy
|
||
|
|
env_file:
|
||
|
|
- /opt/letsbe/env/documenso.env
|
||
|
|
environment:
|
||
|
|
- PORT=3020
|
||
|
|
- NEXT_PRIVATE_INTERNAL_WEBAPP_URL=https://{{ domain_documenso }}
|
||
|
|
ports:
|
||
|
|
- "127.0.0.1:3020:3020"
|
||
|
|
volumes:
|
||
|
|
- /opt/documenso/certificate.p12:/opt/documenso/certificate.p12
|
||
|
|
- /etc/localtime:/etc/localtime:ro
|
||
|
|
networks:
|
||
|
|
{{ customer }}-documenso:
|
||
|
|
ipv4_address: 172.20.29.3
|
||
|
|
labels:
|
||
|
|
- "diun.enable=true"
|
||
|
|
|
||
|
|
networks:
|
||
|
|
{{ customer }}-documenso:
|
||
|
|
driver: bridge
|
||
|
|
ipam:
|
||
|
|
config:
|
||
|
|
- subnet: 172.20.29.0/28
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
{{ customer }}-documenso-database:
|
||
|
|
{{ customer }}-documenso-backups:
|