-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 2.04 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
56
57
58
59
version: "3.9"
services:
perlite:
image: sec77/perlite:latest
container_name: perlite
restart: unless-stopped
environment:
- NOTES_PATH=Demo # if you change this name, please also adjust below container path /Demo
- HIDE_FOLDERS=docs,private,trash,Obsidian-Gitsync-Perlite # add your GitHub repo name here
- LINE_BREAKS=true
volumes:
- ./repository/root:/var/www/perlite/Demo:ro # adjust container path /Demo if you want to use a custom NOTES_PATH
- ./index.php:/var/www/perlite/index.php:ro # optional; allows to customize the website's title etc.
#networks:
# - proxy
perlite-web:
image: nginx:stable-alpine
container_name: perlite-web
restart: unless-stopped
ports:
- 8765:80
volumes_from:
- perlite
volumes:
- ./perlite.conf:/etc/nginx/conf.d/default.conf:ro # bind mount the necessary nginx config into container
depends_on:
- perlite
#networks:
# - proxy
#labels:
# - traefik.enable=true
# - traefik.http.routers.perlite.rule=Host(`kb.example.com`)
# - traefik.http.services.perlite.loadbalancer.server.port=80
# - traefik.docker.network=proxy
# # Part for optional traefik middlewares
# - traefik.http.routers.perlite.middlewares=basic-auth@file
perlite-git-sync:
# self-built image from https://github.com/kubernetes/git-sync
image: l4rm4nd/git-sync:latest
container_name: perlite-git-sync
restart: unless-stopped
user: 1000:1000
environment:
#- GIT_SYNC_USERNAME=<USERNAME> # optional; your github username if repo is private
#- GIT_SYNC_PASSWORD=<ACCESS-TOKEN> # optional; your github access token if repo is private
- GIT_SYNC_PERIOD=30s
- GIT_SYNC_REPO=https://github.com/l4rm4nd/Obsidian-Gitsync-Perlite # your github repository to sync
- GIT_SYNC_ROOT=/tmp/git/root # do not change this
volumes:
- ./repository:/tmp/git # volume bind mount path to store synced github repo data
#networks:
# - proxy
#networks:
# proxy:
# external: true