-
Notifications
You must be signed in to change notification settings - Fork 0
/
traefik.docker-compose.yml
37 lines (34 loc) · 1.1 KB
/
traefik.docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: "3"
services:
n8n:
image: n8nio/n8n
container_name: n8n
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=${DATABASE_HOST}
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=${DATABASE_NAME}
- DB_POSTGRESDB_USER=${DATABASE_USER}
- DB_POSTGRESDB_PASSWORD=${DATABASE_PASSWORD}
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=${USERNAME}
- N8N_BASIC_AUTH_PASSWORD=${PASSWORD}
- WEBHOOK_URL=${APP_URL}
- TZ=America/New_York
networks:
- public
labels:
- "traefik.enable=true"
- "traefik.http.routers.n8n.rule=Host(`${TRAEFIK_PROXY_URL}`)"
- "traefik.http.routers.n8n.entrypoints=websecure"
- "traefik.http.routers.n8n.tls.certresolver=tlsresolver"
- "traefik.http.routers.n8n.middlewares=authelia@docker"
- "traefik.http.services.n8n.loadbalancer.server.port=5678"
- "com.centurylinklabs.watchtower.enable=true"
volumes:
- ${CONFIG_DIR}/n8n:/home/node/.n8n
restart: unless-stopped
networks:
public:
external:
name: ${TRAEFIK_PUBLIC_NETWORK}