feat: единая админка runtime-конфигов и indpic (#22)
deploy-preland / deploy zoomstage.online (push) Successful in 1m1s
deploy-preland / deploy zoomstage.online (push) Successful in 1m1s
This commit is contained in:
1 parent
5b6b2d2053
commit
9515c1c62b
52 files changed
+2459
-34
No files matched your search
@@ -0,0 +1,36 @@
|
||||
services:
|
||||
web:
|
||||
image: ${ADMIN_IMAGE:?Укажите неизменяемую версию образа}
|
||||
restart: unless-stopped
|
||||
env_file: [./secret.env]
|
||||
environment:
|
||||
ADMIN_STATE_DIR: /var/lib/preland-admin
|
||||
ADMIN_LOCAL_ROOTS: /targets/zoompixel.ru,/targets/zoomstage.online
|
||||
volumes:
|
||||
- ./state:/var/lib/preland-admin
|
||||
- /srv/preland/domains/zoompixel.ru:/targets/zoompixel.ru
|
||||
- /srv/preland/domains/zoomstage.online:/targets/zoomstage.online
|
||||
ports: ["127.0.0.1:18084:80"]
|
||||
security_opt: ["no-new-privileges:true"]
|
||||
cap_drop: [ALL]
|
||||
cap_add: [CHOWN, SETGID, SETUID, NET_BIND_SERVICE]
|
||||
healthcheck:
|
||||
test: ["CMD", "php", "-r", "exit(@file_get_contents('http://127.0.0.1/') === false ? 1 : 0);"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
worker:
|
||||
image: ${ADMIN_IMAGE:?Укажите неизменяемую версию образа}
|
||||
restart: unless-stopped
|
||||
user: "997:987"
|
||||
command: ["php", "/app/bin/worker.php"]
|
||||
env_file: [./secret.env]
|
||||
environment:
|
||||
ADMIN_STATE_DIR: /var/lib/preland-admin
|
||||
ADMIN_LOCAL_ROOTS: /targets/zoompixel.ru,/targets/zoomstage.online
|
||||
volumes:
|
||||
- ./state:/var/lib/preland-admin
|
||||
- /srv/preland/domains/zoompixel.ru:/targets/zoompixel.ru
|
||||
- /srv/preland/domains/zoomstage.online:/targets/zoomstage.online
|
||||
security_opt: ["no-new-privileges:true"]
|
||||
cap_drop: [ALL]
|
||||
Reference in new issue
Block a user