-
Notifications
You must be signed in to change notification settings - Fork 306
Expand file tree
/
Copy pathdocker-compose.simple.yml
More file actions
34 lines (27 loc) · 1.23 KB
/
docker-compose.simple.yml
File metadata and controls
34 lines (27 loc) · 1.23 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
# This file is an example for running solid server directly on port 443 with
# existing (letsencrypt) certificates and without reverse proxy.
# To use it adjust any line that is commented with (!):
# 1. Change any occurrence of the domain `solid.example` to your actual domain
# 2. Adjust the `latest` tag to a specific version you want to use.
version: '3.7'
services:
server:
image: nodesolidserver/node-solid-server:latest # (!) use specific version tag here
# this ensures automatic container start, when host reboots
restart: always
ports:
- 443:8443
volumes:
# mount local directories to the container
# (!) the host directories have to exist and be owned by UID 1000
- /opt/solid/data:/opt/solid/data
- /opt/solid/.db:/opt/solid/.db
- /opt/solid/config:/opt/solid/config
# (!) mount existing TLS certificates, e.g. from letsencrypt
# (!) ensure that the key and fullchain files are readable by UID 1000
- /etc/letsencrypt/live/solid.example/:/opt/solid/certs
environment:
# (!) use your actual SOLID_SERVER_URI
- "SOLID_SERVER_URI=https://solid.example"
- "SOLID_SSL_KEY=/opt/solid/certs/key.pem"
- "SOLID_SSL_CERT=/opt/solid/certs/fullchain.pem"