Refactor
All checks were successful
build docker image / docker-build (push) Successful in 47s

This commit is contained in:
2025-02-13 19:03:02 +02:00
parent fb7324d348
commit e18452f2b6
6 changed files with 16 additions and 14 deletions

View File

@ -1,7 +0,0 @@
{
"title": "Script server",
"port": "5000",
"access": {
"admin_users": [ "*" ]
}
}

10
data-conf/conf.json Normal file
View File

@ -0,0 +1,10 @@
{
"title": "Script Server",
"access": {
"admin_users": [ "*" ]
},
"logging": {
"execution_file": "$DATE-$ID.log",
"execution_date_format": "%y-%m-%d_%H-%M"
}
}

View File

@ -2,12 +2,11 @@ services:
script-server: script-server:
restart: unless-stopped restart: unless-stopped
environment: environment:
- TZ=Europe/Kyiv - PYTHONUNBUFFERED=1
ports:
- 5000:5000
volumes: volumes:
- ./app/conf.json:/app/conf/conf.json - /var/run/docker.sock:/var/run/docker.sock
- ./app/runners:/app/conf/runners - ./data-conf:/app/conf
- ./app/scripts:/app/conf/scripts - ./data-scripts:/app/scripts
- ./data-logs:/app/logs
image: gitea.stuzer.link/stuzer05/docker-script-server:latest image: gitea.stuzer.link/stuzer05/docker-script-server:latest
container_name: script-server container_name: script-server