feat: 实现账号设备分组与命令日志
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
name: tapremly
|
||||
|
||||
services:
|
||||
nixmsg-init:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: deploy/Dockerfile.init
|
||||
image: tapremly-nixmsg-init:local
|
||||
environment:
|
||||
NIXMSG_CONFIG: /etc/nixmsg/config.yaml
|
||||
volumes:
|
||||
- ./deploy/nixmsg.yaml:/etc/nixmsg/config.yaml:ro
|
||||
- nixmsg-data:/data
|
||||
- nixmsg-secrets:/secrets
|
||||
restart: "no"
|
||||
|
||||
nixmsg:
|
||||
image: git.asio.asia/nixevol/nixmsg:0.1.1
|
||||
container_name: tapremly-nixmsg
|
||||
depends_on:
|
||||
nixmsg-init:
|
||||
condition: service_completed_successfully
|
||||
environment:
|
||||
NIXMSG_CONFIG: /etc/nixmsg/config.yaml
|
||||
command: ["serve"]
|
||||
ports:
|
||||
- "127.0.0.1:7443:7443"
|
||||
volumes:
|
||||
- ./deploy/nixmsg.yaml:/etc/nixmsg/config.yaml:ro
|
||||
- nixmsg-data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "/nixmsg", "healthcheck"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
start_period: 5s
|
||||
stop_grace_period: 30s
|
||||
restart: unless-stopped
|
||||
|
||||
tapremly:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
additional_contexts:
|
||||
websrc: ../web
|
||||
image: tapremly:local
|
||||
container_name: tapremly-server
|
||||
depends_on:
|
||||
nixmsg:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
TAPREMLY_LISTEN: ":8080"
|
||||
TAPREMLY_DATA_DIR: /data
|
||||
TAPREMLY_COOKIE_SECURE: "false"
|
||||
TAPREMLY_ADMIN_USERNAME: admin
|
||||
NIXMSG_URL: http://nixmsg:7443
|
||||
NIXMSG_ADMIN_USER: admin
|
||||
NIXMSG_ADMIN_PASSWORD_FILE: /secrets/nixmsg-admin-password
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080"
|
||||
volumes:
|
||||
- tapremly-data:/data
|
||||
- nixmsg-secrets:/secrets:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/healthz"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
start_period: 8s
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
nixmsg-data:
|
||||
nixmsg-secrets:
|
||||
tapremly-data:
|
||||
Reference in New Issue
Block a user