-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
28 lines (27 loc) · 1.01 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
# Unraid: Docker Compose Manager plugin -> new stack -> paste this -> Compose Up.
#
# Before the first run, create the shared network the reverse proxy also uses:
# docker network create proxynet
services:
lms:
build: .
# Once you publish the image from GitHub Actions, swap build for:
# image: ghcr.io/YOUR-GITHUB-USER/simple-lms:latest
container_name: simple-lms
restart: unless-stopped
ports:
# Host port for testing on the LAN before the proxy is wired up.
# Nginx Proxy Manager reaches the app as http://simple-lms:3000 instead.
- "3080:3000"
volumes:
# The database and every uploaded SCORM package. This is your backup target.
- /mnt/user/appdata/simple-lms:/data
environment:
# Generate with: openssl rand -base64 48 (put it in a .env beside this file)
SESSION_SECRET: "${SESSION_SECRET:?set SESSION_SECRET in .env next to this compose file}"
TZ: "America/New_York"
networks:
- proxynet
networks:
proxynet:
external: true