Ajouter docker-compose.yml
This commit is contained in:
parent
5c41338898
commit
c709c8bdea
106
docker-compose.yml
Normal file
106
docker-compose.yml
Normal file
@ -0,0 +1,106 @@
|
||||
#### NETWORKS
|
||||
networks:
|
||||
traefik_front_network:
|
||||
external: true
|
||||
back_network:
|
||||
driver: bridge
|
||||
attachable: true
|
||||
|
||||
#### SERVICES
|
||||
services:
|
||||
docuseal:
|
||||
container_name: docuseal-app
|
||||
hostname: docuseal-app
|
||||
image: docuseal/docuseal:latest
|
||||
# ports:
|
||||
# - 3900:3000
|
||||
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
|
||||
labels:
|
||||
- "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"
|
||||
|
||||
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
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data:/var/lib/postgresql/data:rw
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
msmtpd:
|
||||
container_name: docuseal-msmtpd
|
||||
hostname: docuseal-msmtpd
|
||||
image: crazymax/msmtpd:latest
|
||||
networks:
|
||||
- back_network
|
||||
# ports:
|
||||
# - 2500:2500
|
||||
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_USER_FILE=/run/secrets/smtp_user"
|
||||
# - "SMTP_PASSWORD_FILE=/run/secrets/smtp_password"
|
||||
- "SMTP_DOMAIN=localhost"
|
||||
- "SMTP_FROM=hostinfo@tips-of-mine.fr"
|
||||
# secrets:
|
||||
# - smtp_user
|
||||
# - smtp_password
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "echo EHLO localhost"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
# secrets:
|
||||
# smtp_user:
|
||||
# external: true
|
||||
# smtp_password:
|
||||
# external: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user