-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (70 loc) · 2.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
76 lines (70 loc) · 2.19 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: "3"
# Configure default network as the external one
networks:
default:
external:
name: ${NETWORK_NAME}
# Define a persistent volume for portainer
volumes:
portainer_data:
syncthing_config:
syncthing_data:
external:
name: ${SYNCTHING_VOLUME_NAME}
# Declare services
services:
# Traefik: Powerful reverse proxy
traefik:
image: traefik:latest
container_name: traefik
volumes:
- ./conf.d/traefik/traefik.toml:/etc/traefik/traefik.toml:ro
- ./conf.d/traefik/acme.json:/acme.json
- /var/run/docker.sock:/var/run/docker.sock
# - syncthing_data:/var/syncthing/Sync
labels:
traefik.port: "8080"
traefik.enable: "true"
traefik.frontend.rule: "Host:${SERVICES_DOMAIN:-localhost}"
#### Comment this 2 lines to disable https
traefik.frontend.redirect.entryPoint: "https"
traefik.frontend.entryPoints: "http,https"
ports:
- "80:80"
- "443:443"
restart: unless-stopped
# Portainer: Container manager
portainer:
image: portainer/portainer
container_name: portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
labels:
traefik.frontend.rule: "PathPrefixStrip:/portainer;Host:${SERVICES_DOMAIN:-localhost}"
traefik.port: "9000"
traefik.enable: "true"
#### Comment this 2 lines to disable https
traefik.frontend.redirect.entryPoint: "https"
traefik.frontend.entryPoints: "http,https"
command: -H unix:///var/run/docker.sock
restart: unless-stopped
# Syncthing: Synchronize folder
syncthing:
image: syncthing/syncthing
container_name: syncthing
volumes:
- ./conf.d/syncthing/:/etc/syncthing/:ro
- syncthing_data:/var/syncthing/Sync
labels:
traefik.frontend.rule: "PathPrefixStrip:/syncthing;Host:${SERVICES_DOMAIN:-localhost}"
traefik.port: "8384"
traefik.enable: "true"
#### Comment this 2 lines to disable https
traefik.frontend.redirect.entryPoint: "https"
traefik.frontend.entryPoints: "http,https"
entrypoint: "/etc/syncthing/entrypoint.sh"
ports:
- "22000:22000/tcp"
- "21027:21027/udp"
restart: unless-stopped