-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (62 loc) · 2.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (62 loc) · 2.35 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
services:
borgwarehouse:
container_name: borgwarehouse
image: borgwarehouse/borgwarehouse
# Pas de "user:" ici : le conteneur doit démarrer en root pour que son
# entrypoint remappe l'utilisateur interne (sed sur /etc/passwd) vers UID/GID.
ports:
- "${WEB_SERVER_PORT:?WEB_SERVER_PORT variable missing}:3000"
- "${SSH_SERVER_PORT:?SSH_SERVER_PORT variable missing}:22"
env_file:
- .env
environment:
- UID=${PUID:?PUID variable missing}
- GID=${PGID:?PGID variable missing}
volumes:
- ${CONFIG_PATH:?CONFIG_PATH variable missing}:/home/borgwarehouse/app/config
- ${SSH_PATH:?SSH_PATH variable missing}:/home/borgwarehouse/.ssh
- ${SSH_HOST:?SSH_HOST variable missing}:/etc/ssh
- ${BORG_REPOSITORY_PATH:?BORG_REPOSITORY_PATH variable missing}:/home/borgwarehouse/repos
- ${TMP_PATH:?TMP_PATH variable missing}:/home/borgwarehouse/tmp
- ${LOGS_PATH:?LOGS_PATH variable missing}:/home/borgwarehouse/logs
labels:
# requiered
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.borgwarehouse.tls.certresolver=myresolver"
- "traefik.http.services.borgwarehouse.loadbalancer.server.port=3000"
- "traefik.http.routers.borgwarehouse.rule=Host(`$FQDN`)"
networks:
- frontend
restart: always
syncthing:
image: ghcr.io/linuxserver/syncthing
volumes:
- ./sync_config:/config
- ./sync_data:/sync_data
- ${BORG_REPOSITORY_PATH:?BORG_REPOSITORY_PATH variable missing}:/home/borgwarehouse/repos
ports:
- 8384:8384
- 22000:22000
- 21027:21027/udp
environment:
- PUID=${PUID:?PUID variable missing}
- PGID=${PGID:?PGID variable missing}
- TZ=Europe/Paris
labels:
- traefik.enable=true
- traefik.docker.network=frontend
- traefik.http.routers.syncthing.tls.certresolver=myresolver
- traefik.http.routers.syncthing.rule=Host(`$SYNC_DOMAIN`)
- traefik.http.services.syncthing.loadbalancer.server.port=8384
networks:
- frontend
restart: always
# Apprise is used to send notifications, it's optional. http://apprise:8000 is the URL to use in BorgWarehouse.
# apprise:
# container_name: apprise
# image: caronc/apprise
# user: "www-data:www-data"
networks:
frontend:
external: true