-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
55 lines (51 loc) · 1.49 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.8'
services:
traefik:
image: traefik:v2.9
container_name: traefik
command:
- "--log.level=DEBUG"
- "--entrypoints.n8n.address=:${PUBLIC_PORT}"
- "--certificatesresolvers.letsencrypt.acme.tlschallenge=true"
- "--certificatesresolvers.letsencrypt.acme.email=${ADMIN_EMAIL}"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
- "--providers.file.directory=/configuration/"
- "--providers.file.watch=true"
ports:
- "${PUBLIC_PORT}:${PUBLIC_PORT}"
read_only: true
user: "${DOCKER_UID}:${DOCKER_GID}"
cap_drop:
- ALL
cap_add:
- NET_BIND_SERVICE
security_opt:
- "no-new-privileges:true"
env_file:
- .env
volumes:
- "./letsencrypt:/letsencrypt"
- ./dynamic.yml:/configuration/dynamic.yml:ro
networks:
- foo
n8n:
container_name: n8n
cap_drop:
- ALL
build:
context: .
args:
DOCKER_USER: "${DOCKER_USER}"
DOCKER_UID: "${DOCKER_UID}"
DOCKER_GID: "${DOCKER_GID}"
env_file:
- .env
expose:
- 80
volumes:
- ./credentials/:/app/credentials:rw
- ./workflows/:/app/workflows:rw
networks:
- foo
networks:
foo: