55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
container_name: {{ customer }}-stirlingpdf-db
|
|
image: postgres:14
|
|
restart: always
|
|
volumes:
|
|
- {{ customer }}-stirlingpdf-postgres:/var/lib/postgresql/data
|
|
- {{ customer }}-stirlingpdf-backups:/tmp/backups
|
|
environment:
|
|
POSTGRES_DB: stirlingpdf
|
|
POSTGRES_USER: {{ stirlingpdf_postgres_user }}
|
|
POSTGRES_PASSWORD: {{ stirlingpdf_postgres_password }}
|
|
networks:
|
|
{{ customer }}-stirlingpdf:
|
|
ipv4_address: 172.20.32.2
|
|
|
|
stirlingpdf:
|
|
container_name: {{ customer }}-stirlingpdf
|
|
image: frooodle/s-pdf:latest
|
|
restart: always
|
|
ports:
|
|
- "127.0.0.1:8080:8080"
|
|
volumes:
|
|
- {{ customer }}-stirlingpdf-data:/usr/share/s-pdf/data
|
|
- {{ customer }}-stirlingpdf-configs:/configs
|
|
environment:
|
|
- DOCKER_ENABLE_SECURITY=true
|
|
- ENABLE_ARIA2=true
|
|
- ALLOW_CORS=false
|
|
- DISABLE_PLAYGROUND=true
|
|
- STIRLING_PDF_DATABASE_URL=postgresql://{{ stirlingpdf_postgres_user }}:{{ stirlingpdf_postgres_password }}@{{ customer }}-stirlingpdf-db:5432/stirlingpdf
|
|
- STIRLING_PDF_API_KEY={{ stirlingpdf_api_key }}
|
|
depends_on:
|
|
- postgres
|
|
networks:
|
|
{{ customer }}-stirlingpdf:
|
|
ipv4_address: 172.20.32.3
|
|
labels:
|
|
- "diun.enable=true"
|
|
|
|
networks:
|
|
{{ customer }}-stirlingpdf:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 172.20.32.0/28
|
|
|
|
volumes:
|
|
{{ customer }}-stirlingpdf-postgres:
|
|
{{ customer }}-stirlingpdf-data:
|
|
{{ customer }}-stirlingpdf-configs:
|
|
{{ customer }}-stirlingpdf-backups:
|