update main dc
This commit is contained in:
parent
1c51fd54ab
commit
5435d7bdc6
13
control.sh
13
control.sh
|
@ -4,6 +4,9 @@
|
||||||
#exec 1>out.log
|
#exec 1>out.log
|
||||||
#exec 2>logs/error.log
|
#exec 2>logs/error.log
|
||||||
|
|
||||||
|
compose_file="docker-compose.yaml"
|
||||||
|
merge_file="docker-compose.limits.yaml"
|
||||||
|
|
||||||
root_folder=`pwd`
|
root_folder=`pwd`
|
||||||
|
|
||||||
menu="
|
menu="
|
||||||
|
@ -25,11 +28,11 @@ do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$input" in
|
case "$input" in
|
||||||
1) docker compose -f docker-compose-devserver.yaml -f docker-compose.limits.yaml up -d;break ;;
|
1) docker compose -f $compose_file -f $merge_file up -d;break ;;
|
||||||
2) docker compose -f docker-compose-devserver.yaml -f docker-compose.limits.yaml down && \
|
2) docker compose -f $compose_file -f $merge_file down && \
|
||||||
docker compose -f docker-compose-devserver.yaml -f docker-compose.limits.yaml up -d;break ;;
|
docker compose -f $compose_file -f $merge_file up -d;break ;;
|
||||||
3) docker compose -f docker-compose-devserver.yaml -f docker-compose.limits.yaml down;break ;;
|
3) docker compose -f $compose_file -f $merge_file down;break ;;
|
||||||
4) docker compose -f docker-compose-devserver.yaml -f docker-compose.limits.yaml ps;break ;;
|
4) docker compose -f $compose_file -f $merge_file ps;break ;;
|
||||||
*) echo "key not found"
|
*) echo "key not found"
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
name: reverse_dev
|
|
||||||
include:
|
|
||||||
- path:
|
|
||||||
- compose_extends/network.include.yaml
|
|
||||||
|
|
||||||
services:
|
|
||||||
reverse:
|
|
||||||
extends:
|
|
||||||
file: compose_extends/docker-compose.base.yaml
|
|
||||||
service: reverse
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfiles/Dockerfile_devserver
|
|
||||||
args:
|
|
||||||
CONT_IMG_VER: "v1.0.0"
|
|
||||||
pull_policy: missing
|
|
||||||
volumes:
|
|
||||||
- "./sites-enabled:/etc/nginx/sites-enabled:ro"
|
|
||||||
ports:
|
|
||||||
- 80:80
|
|
||||||
- 443:443
|
|
||||||
networks:
|
|
||||||
- services
|
|
||||||
secrets:
|
|
||||||
- source: softsols_cert
|
|
||||||
target: /etc/nginx/ssl/live/softsols.ru/fullchain.pem
|
|
||||||
- source: softsols_key
|
|
||||||
target: /etc/nginx/ssl/live/softsols.ru/privkey.pem
|
|
||||||
|
|
||||||
secrets:
|
|
||||||
softsols_cert:
|
|
||||||
name: softsols_cert
|
|
||||||
file: ./ssl/live/softsols.ru/fullchain.pem
|
|
||||||
external: false
|
|
||||||
softsols_key:
|
|
||||||
name: softsols_key
|
|
||||||
file: ./ssl/live/softsols.ru/privkey.pem
|
|
||||||
external: false
|
|
|
@ -1,4 +1,4 @@
|
||||||
name: reverse_default
|
name: reverse_dev
|
||||||
include:
|
include:
|
||||||
- path:
|
- path:
|
||||||
- compose_extends/network.include.yaml
|
- compose_extends/network.include.yaml
|
||||||
|
@ -8,25 +8,31 @@ services:
|
||||||
extends:
|
extends:
|
||||||
file: compose_extends/docker-compose.base.yaml
|
file: compose_extends/docker-compose.base.yaml
|
||||||
service: reverse
|
service: reverse
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfiles/Dockerfile_devserver
|
||||||
|
args:
|
||||||
|
CONT_IMG_VER: "v1.0.0"
|
||||||
|
pull_policy: missing
|
||||||
volumes:
|
volumes:
|
||||||
- "./locations:/etc/nginx/locations:ro"
|
|
||||||
- "./configuration:/etc/nginx/configuration:ro"
|
|
||||||
- "./sites-enabled:/etc/nginx/sites-enabled:ro"
|
- "./sites-enabled:/etc/nginx/sites-enabled:ro"
|
||||||
- "./error-pages:/etc/nginx/error-pages:ro"
|
|
||||||
- "./resources:/var/www/html/resources:ro"
|
|
||||||
- "./ssl:/etc/nginx/ssl:ro"
|
|
||||||
- "./logs:/var/log/nginx/"
|
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
networks:
|
networks:
|
||||||
- services
|
- services
|
||||||
configs:
|
secrets:
|
||||||
- source: nginx_config
|
- source: softsols_cert
|
||||||
target: /etc/nginx/nginx.conf
|
target: /etc/nginx/ssl/live/softsols.ru/fullchain.pem
|
||||||
|
- source: softsols_key
|
||||||
|
target: /etc/nginx/ssl/live/softsols.ru/privkey.pem
|
||||||
|
|
||||||
configs:
|
secrets:
|
||||||
nginx_config:
|
softsols_cert:
|
||||||
name: times_new_nginx_config
|
name: softsols_cert
|
||||||
file: ./nginx_config/nginx.conf
|
file: ./ssl/live/softsols.ru/fullchain.pem
|
||||||
external: false
|
external: false
|
||||||
|
softsols_key:
|
||||||
|
name: softsols_key
|
||||||
|
file: ./ssl/live/softsols.ru/privkey.pem
|
||||||
|
external: false
|
Loading…
Reference in New Issue