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
services:
http-server:
build: .
image: chupacabra500/scratch-server:latest
container_name: http-server
ports:
- "7878:7878"
environment:
# Server configuration
- THREADS=12
- SILENT=false
- CORS=false
- COMPRESSION=true
# Authentication (uncomment and set to enable)
#- AUTH=username:password
# TLS/SSL (uncomment and set certificate password)
#- CERT=keyStore.p12
#- CERT_PASS=testing
volumes:
# Mount local directory to serve and upload files (read-write)
# Server always runs from /srv - control file location by mounting to /srv
- ./testData/public:/srv
# Mount custom index directory (automatically uses /index/index.html if present)
#- ./testData/public:/index:ro
# Mount if you want to use a different name than index.html
#- ./testData/public/custom_index.html:/index/index.html:ro
# Mount certificates if using TLS (uncomment if needed)
- ./testData/certs:/certs:ro
restart: unless-stopped
# Security options
security_opt:
- no-new-privileges:true