-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (24 loc) · 1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
27 lines (24 loc) · 1 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
services:
moley:
image: ghcr.io/stupside/moley:latest
container_name: moley
environment:
# Cloudflare API token (required)
MOLEY_CLOUDFLARE__TOKEN: "<your-cloudflare-api-token>"
# Tunnel
MOLEY_TUNNEL_TUNNEL__NAME: "moley"
MOLEY_TUNNEL_TUNNEL__PERSISTENT: "false"
# Ingress
MOLEY_TUNNEL_INGRESS__ZONE: "<your-zone.com>"
MOLEY_TUNNEL_INGRESS__MODE: "subdomain"
# First app — duplicate the APPS__0 block as APPS__1, APPS__2, … for more
MOLEY_TUNNEL_INGRESS__APPS__0__TARGET__HOSTNAME: "host.docker.internal"
MOLEY_TUNNEL_INGRESS__APPS__0__TARGET__PORT: "3000"
MOLEY_TUNNEL_INGRESS__APPS__0__TARGET__PROTOCOL: "http"
MOLEY_TUNNEL_INGRESS__APPS__0__EXPOSE__SUBDOMAIN: "app"
volumes:
# Persisted moley state (lock file, tunnel configs)
- ./data/.moley:/root/.moley
# Optional: use a moley.yml file for advanced config (e.g. Access policies)
# - ./moley.yml:/root/moley.yml:ro
command: ["tunnel", "run"]