Created
February 3, 2025 11:35
-
-
Save notpushkin/c622abbde71fdbaad229c1d50cd13e87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
app: | |
image: docuseal/docuseal:latest | |
networks: [default, traefik-public] | |
deploy: | |
labels: | |
- traefik.enable=true | |
- traefik.docker.network=traefik-public | |
- traefik.constraint-label=traefik-public | |
- traefik.http.routers.${PROJECT_NAME?}-http.rule=Host(`${DOMAIN?}`) | |
- traefik.http.routers.${PROJECT_NAME?}-http.entrypoints=http | |
- traefik.http.routers.${PROJECT_NAME?}-http.middlewares=https-redirect | |
- traefik.http.routers.${PROJECT_NAME?}-https.rule=Host(`${DOMAIN?}`) | |
- traefik.http.routers.${PROJECT_NAME?}-https.entrypoints=https | |
- traefik.http.routers.${PROJECT_NAME?}-https.tls=true | |
- traefik.http.routers.${PROJECT_NAME?}-https.tls.certresolver=le | |
- traefik.http.services.${PROJECT_NAME?}.loadbalancer.server.port=3000 | |
volumes: | |
- docuseal_data:/data/docuseal | |
environment: | |
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/docuseal | |
postgres: | |
image: postgres:15 | |
volumes: | |
- 'pg_data:/var/lib/postgresql/data' | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: docuseal | |
healthcheck: | |
test: ["CMD-SHELL", "pg_isready -U postgres"] | |
interval: 5s | |
timeout: 5s | |
retries: 5 | |
volumes: | |
docuseal_data: | |
pg_data: | |
networks: | |
default: | |
traefik-public: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment