diff --git a/hub-registry/env.cnf b/hub-registry/env.cnf new file mode 100644 index 0000000..f6126a4 --- /dev/null +++ b/hub-registry/env.cnf @@ -0,0 +1,2 @@ +IMAGE_TAG=hub.tp229.com:3500/registry:2.7 +UI_IMAGE_TAG=hub.tp229.com:3500/cnphpbb/registry-ui:latest \ No newline at end of file diff --git a/hub-registry/stack.yaml b/hub-registry/stack.yaml new file mode 100644 index 0000000..cfa420b --- /dev/null +++ b/hub-registry/stack.yaml @@ -0,0 +1,20 @@ +# run:: docker compose -p hub-registry --env-file ./hub-registry/env.cfg -f ./hub-registry/stack.yaml up -d + +services: + registry: + image: ${IMAGE_TAG} + volumes: + - data:/var/lib/registry + ports: + - '3500:3500' + container_name: hub-registry + restart: unless-stopped + + registy-ui: + image: ${UI_IMAGE_TAG} + container_name: hub-registry-ui + environment: + - NODE_ENV=production + - REGISTRY_DOMAIN=hub.tp229.com:3500 + - REGISTRY_HOST=192.168.0.7:3500 + - REGISTRY_STORAGE_DELETE_ENABLED=true diff --git a/memos/prod.stack.yml b/memos/prod.stack.yml index eb65618..606365b 100644 --- a/memos/prod.stack.yml +++ b/memos/prod.stack.yml @@ -9,6 +9,7 @@ services: ports: - '5230:5230' container_name: memos + restart: always environment: - MEMOS_DRIVER=${DB_DRIVER} - MEMOS_DSN=user=${DB_USER} password=${DB_PASSWORD} dbname=${DB_DATANAME} host=${DB_HOST} port=${DB_POST} sslmode=disable diff --git a/webout/webout.yaml b/webout/webout.yaml new file mode 100644 index 0000000..78c0848 --- /dev/null +++ b/webout/webout.yaml @@ -0,0 +1,33 @@ +# run:: docker compose -p out-caddy --env-file ./webout/env.cfg -f ./webout/webout.yaml up -d + +services: + web-out: + image: ${IMAGE_TAG} + volumes: + - caddy_data:/data + - caddy_config:/config + - /data/configs/caddy/web-http.conf:/etc/caddy/Caddyfile + ports: + - '443:443' + - '80:80' + container_name: web-out + restart: unless-stopped + environment: + - TZ=Asia/Shanghai + + tp229-out: + image: ${IMAGE_TAG} + volumes: + - caddy_data:/data + - caddy_config:/config + - /data/configs/caddy/site-tp229.conf:/etc/caddy/Caddyfile + - /data/www-root:/www-root + - /data/soft:/var/www/soft + container_name: tp229-out + restart: unless-stopped + environment: + - TZ=Asia/Shanghai + +volumes: + caddy_data: + caddy_config: \ No newline at end of file