-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
29 lines (29 loc) · 1.06 KB
/
docker-compose.yml
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
services:
tunmgr:
build:
context: .
image: ghcr.io/picosh/tunmgr:latest
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- $HOME/.ssh/id_ed25519_pico_antonio:/key:ro
# ports: # Ports map for local tunnels like below
# - 8000:8000
# command: | # Provide other commands below
# -only-labels=true
# -local-tunnel=0.0.0.0:8000:antonio-httpbin:8000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 2s
timeout: 5s
retries: 5
start_period: 1s
httpbin:
image: kennethreitz/httpbin
depends_on:
tunmgr:
condition: service_healthy
# labels: # or provide tunnel names and ports explicitly
# tunmgr.names: httpbin # Comma separated list of names. Can be an empty. If empty, allows for tcp forward (or random name).
# tunmgr.ports: 8000:80,80:80 # Comma separated list of port maps. (remote:local). First is alias, second is http.
command: gunicorn -b 0.0.0.0:80 httpbin:app -k gevent --access-logfile -