#### NETWORKS networks: traefik_front_network: external: true back_network_docuseal: driver: bridge attachable: true #### SERVICES services: docuseal: container_name: docuseal-app hostname: docuseal-app image: docuseal/docuseal:latest volumes: - ./docuseal:/data/docuseal environment: - FORCE_SSL=https://docuseal.tips-of-mine.com - DATABASE_URL=postgresql://postgres:postgres@postgres:5432/docuseal depends_on: postgres: condition: service_healthy restart: true msmtpd: condition: service_healthy restart: true networks: - traefik_front_network - back_network_docuseal labels: - "com.centurylinklabs.watchtower.enable=true" - "traefik.enable=true" - "traefik.docker.network=traefik_front_network" # HTTP - "traefik.http.routers.docuseal-http.rule=Host(`docuseal.tips-of-mine.com`)" - "traefik.http.routers.docuseal-http.entrypoints=http" # HTTPS - "traefik.http.routers.docuseal-https.rule=Host(`docuseal.tips-of-mine.com`)" - "traefik.http.routers.docuseal-https.entrypoints=https" - "traefik.http.routers.docuseal-https.service=docuseal-service" - "traefik.http.routers.docuseal-https.tls=true" # Middleware # Service - "traefik.http.services.docuseal-service.loadbalancer.server.port=3000" ### POSTGRESQL postgres: container_name: docuseal-postgres hostname: docuseal-postgres environment: PGDATA: /var/lib/postgresql/data/docuseal POSTGRES_DB: docuseal POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres image: postgres:15.6-alpine networks: - back_network_docuseal restart: always volumes: - ./data:/var/lib/postgresql/data:rw healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 ### msmtpd msmtpd: container_name: docuseal-msmtpd hostname: docuseal-msmtpd image: crazymax/msmtpd:latest networks: - back_network_docuseal environment: - "TZ=Europe/Paris" - "PUID=1500" - "PGID=1500" - "SMTP_HOST=10.0.4.52" - "SMTP_PORT=587" - "SMTP_TLS=on" - "SMTP_STARTTLS=on" - "SMTP_TLS_CHECKCERT=off" - "SMTP_AUTH=on" - "SMTP_USER=hostinfo@tips-of-mine.fr" - "SMTP_PASSWORD=Whf2VtLEd2QR4er" - "SMTP_DOMAIN=localhost" - "SMTP_FROM=hostinfo@tips-of-mine.fr" restart: always healthcheck: test: ["CMD-SHELL", "echo EHLO localhost"] interval: 5s timeout: 5s retries: 5