mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Update deployment
This commit is contained in:
parent
686f5e7e87
commit
ec5bcbc9c7
2 changed files with 4 additions and 7 deletions
2
.github/workflows/cd/deploy-app.sh
vendored
2
.github/workflows/cd/deploy-app.sh
vendored
|
|
@ -227,7 +227,7 @@ for ip in $IP_LIST; do
|
|||
mkdir -p $REMOTE_WORK_DIR/home; \
|
||||
echo \"$custom_config\" > $REMOTE_WORK_DIR/home/config.yaml; \
|
||||
echo '$compose_src' > ./docker-compose.yml; \
|
||||
docker compose stop; \
|
||||
docker compose down; \
|
||||
IMAGE_TAG=$DOCKER_IMAGE_TAG docker compose pull; \
|
||||
docker compose up -d;"
|
||||
done
|
||||
|
|
|
|||
9
.github/workflows/cd/docker-compose.yml
vendored
9
.github/workflows/cd/docker-compose.yml
vendored
|
|
@ -2,16 +2,12 @@ version: "3.9"
|
|||
|
||||
x-params:
|
||||
&default-params
|
||||
image: ghcr.io/giongto35/cloud-game/cloud-game:${IMAGE_TAG:-latest}
|
||||
image: ghcr.io/giongto35/cloud-game/cloud-game:${IMAGE_TAG:-dev}
|
||||
network_mode: "host"
|
||||
privileged: true
|
||||
restart: always
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "32m"
|
||||
max-file: "4"
|
||||
compress: "true"
|
||||
driver: "journald"
|
||||
|
||||
services:
|
||||
|
||||
|
|
@ -21,6 +17,7 @@ services:
|
|||
volumes:
|
||||
- ${APP_DIR:-/cloud-game}/cache:/usr/local/share/cloud-game/assets/cache
|
||||
- ${APP_DIR:-/cloud-game}/games:/usr/local/share/cloud-game/assets/games
|
||||
- ${APP_DIR:-/cloud-game}/home:/root/.cr
|
||||
|
||||
worker:
|
||||
<<: *default-params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue