-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (73 loc) · 2.33 KB
/
docker-compose.yml
File metadata and controls
79 lines (73 loc) · 2.33 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
services:
postgres:
image: postgres:18.3
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-cloudproxy}
POSTGRES_USER: ${POSTGRES_USER:-cloudproxy}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env or use external DB}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-cloudproxy} -d ${POSTGRES_DB:-cloudproxy}"]
interval: 5s
timeout: 5s
retries: 20
volumes:
- cloudproxy-postgres:/var/lib/postgresql
control-plane:
image: ghcr.io/zanel1u/cloud-cli-proxy/control-plane:latest
pull_policy: always
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
required: false
environment:
DATABASE_URL: postgres://${POSTGRES_USER:-cloudproxy}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-cloudproxy}?sslmode=disable
CONTROL_PLANE_ADDR: ":8080"
HOST_AGENT_MODE: embedded
ADMIN_USERNAME: ${ADMIN_USERNAME:-admin}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:?Set ADMIN_PASSWORD in .env}
ADMIN_JWT_SECRET: ${ADMIN_JWT_SECRET:?Set ADMIN_JWT_SECRET in .env}
LOG_FORMAT: ${LOG_FORMAT:-json}
LOG_LEVEL: ${LOG_LEVEL:-info}
CLOUD_CLI_PROXY_GATEWAY_IMAGE: ghcr.io/zanel1u/cloud-cli-proxy/sing-box-gateway:latest
ports:
- "${SSH_PROXY_PORT:-2222}:2222"
cap_add:
- NET_ADMIN
- SYS_ADMIN
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/cloud-cli-proxy:/var/lib/cloud-cli-proxy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://127.0.0.1:8080/healthz"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
admin:
image: ghcr.io/zanel1u/cloud-cli-proxy/admin:latest
pull_policy: always
restart: unless-stopped
depends_on:
control-plane:
condition: service_healthy
ports:
- "${ADMIN_PORT:-3000}:80"
sing-box-gateway:
image: ghcr.io/zanel1u/cloud-cli-proxy/sing-box-gateway:latest
pull_policy: always
restart: "no"
command: ["true"]
managed-user:
image: ghcr.io/zanel1u/cloud-cli-proxy/managed-user:latest
pull_policy: always
restart: "no"
command: ["true"]
sing-box:
image: ghcr.io/sagernet/sing-box:v1.13.3
pull_policy: always
restart: "no"
command: ["true"]
volumes:
cloudproxy-postgres: