chore(docker): windows compatible, without docker-compose wrapper (#613)

This commit is contained in:
Eike Ahmels 2022-02-07 13:08:24 +01:00 committed by GitHub
parent e01841e5a8
commit dc3f191684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 19 deletions

View File

@ -10,7 +10,7 @@ services:
- ./docker/logs:/home/node/klipper_logs
- ./docker/gcode:/home/node/gcode
- ./docker/config/moonraker:/home/node/.moonraker_database
container_name: ${APP_NAME}-stack-api
container_name: mainsail-stack-api
ports:
- "7125:7125"
networks:
@ -22,7 +22,7 @@ services:
image: mainsail-stack-npm/1
volumes:
- ./:/home/node/mainsail
container_name: ${APP_NAME}-stack-npm
container_name: mainsail-stack-npm
ports:
- "8080:8080"
depends_on:

View File

@ -1,17 +0,0 @@
#!/usr/bin/env bash
export APP_NAME=mainsail
if [ $# -gt 0 ]; then
if [ "$1" == "restart" ]; then
docker-compose restart "$2"
elif [ "$1" == "bash" ]; then
docker exec -it "$APP_NAME-stack-$2" bash
elif [ "$1" == "npm-build" ]; then
docker exec "$APP_NAME-stack-npm" npm run build
else
docker-compose "$@"
fi
else
docker-compose ps
fi