forked from Resinat/Resin
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
34 lines (33 loc) · 894 Bytes
/
Copy pathdocker-compose.yml.example
File metadata and controls
34 lines (33 loc) · 894 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
31
32
33
34
services:
resin:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/wchiways/resin_socks:latest
container_name: resin
restart: unless-stopped
environment:
RESIN_AUTH_VERSION: ${RESIN_AUTH_VERSION}
RESIN_ADMIN_TOKEN: ${RESIN_ADMIN_TOKEN}
RESIN_PROXY_TOKEN: ${RESIN_PROXY_TOKEN}
RESIN_LISTEN_ADDRESS: 0.0.0.0
RESIN_PORT: 2260
RESIN_SOCKS5_PORT: 1080
# TZ: <Your Time Zone>
ports:
- "2260:2260"
- "1080:1080"
volumes:
- resin_cache:/var/cache/resin
- resin_state:/var/lib/resin
- resin_log:/var/log/resin
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:2260/healthz >/dev/null || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
volumes:
resin_cache:
resin_state:
resin_log: