-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (29 loc) · 945 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
30 lines (29 loc) · 945 Bytes
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
services:
democratic-linux:
build: .
ports:
- "${HTTP_PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"
volumes:
- vm-data:/app/vm
- ./certs:/app/certs # writable — needed for auto-generated self-signed cert
security_opt:
- label:disable
privileged: true
restart: on-failure:3
environment:
- HTTP_PORT=80
- HTTPS_PORT=443
- QEMU_MEM=512M
- QEMU_CPUS=1
# Set to 1 to block external network access inside the VM (recommended for public deployments).
# SSH forwarding still works so browser tabs are unaffected.
- BLOCK_NETWORK=1
# SSL is opt-in. To enable HTTPS set SSL_CERT and SSL_KEY to PEM file paths
# and optionally set GENERATE_SELF_SIGNED_CERT=true to auto-generate a cert.
# Example:
# SSL_CERT=/app/certs/cert.pem
# SSL_KEY=/app/certs/key.pem
# GENERATE_SELF_SIGNED_CERT=true
volumes:
vm-data: