-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.03 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
# Self-hosted Luminotes sync server.
#
# cp .env.example .env && edit .env
# docker compose up -d
# docker compose exec server luminotes-server user add <name>
#
# Caddy terminates TLS and reverse-proxies to the server. Point DOMAIN's DNS at
# this host and Caddy obtains/renews a Let's Encrypt certificate automatically.
services:
server:
build:
context: .
dockerfile: server/Dockerfile
restart: unless-stopped
environment:
JWT_SECRET: ${JWT_SECRET:?set JWT_SECRET in .env}
DATA_DIR: /data
ADMIN_USER: ${ADMIN_USER:-}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-}
volumes:
- data:/data
expose:
- "8080"
caddy:
image: caddy:2
restart: unless-stopped
depends_on:
- server
ports:
- "80:80"
- "443:443"
environment:
DOMAIN: ${DOMAIN:?set DOMAIN in .env}
ACME_EMAIL: ${ACME_EMAIL:-}
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
volumes:
data:
caddy_data:
caddy_config: