generated from SootyOwl/site-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (34 loc) · 1.18 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
services:
site:
build: .
container_name: site
ports:
- "8080:8080"
volumes:
# Mount the content directory to the container (change the path to your content directory)
- ./content:/app/content:ro
# Mount the 11ty config file to the container (for easier changes without rebuilding the image)
- ./eleventy.config.js:/app/eleventy.config.js:ro
restart: unless-stopped
user: 1000:1000 # Change to your user id and group id
# obsidian (for automatic background Sync)
# docker must not be running in rootless mode for this to work
# otherwise you will probably get an error like this:
# obsidian | Openbox-Message: Failed to open the display from the DISPLAY environment variable.
obsidian-sync:
image: docker.io/linuxserver/obsidian:latest
container_name: obsidian
security_opt:
- seccomp:unconfined #optional
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
ports:
- 3000:3000
- 3001:3001
volumes:
- .obsidian/config:/config
- ./content:/content # content directory
shm_size: "1gb" # needed for electron applications to function properly
restart: unless-stopped