mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-24 20:33:04 +00:00
chore: switch to compose V2 in gql/build image in gql
This commit is contained in:
parent
5b77affd4b
commit
9ad71c707b
2 changed files with 15 additions and 7 deletions
18
Makefile
18
Makefile
|
@ -128,17 +128,23 @@ k8s-delete: # (k8s) Delete pokeapi namespace
|
||||||
start-graphql-prod:
|
start-graphql-prod:
|
||||||
git pull origin master
|
git pull origin master
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
docker-compose -f docker-compose.yml -f docker-compose.override.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d
|
docker compose -f docker-compose.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d
|
||||||
|
docker compose stop app
|
||||||
|
|
||||||
|
down-graphql-prod:
|
||||||
|
docker container rm $(docker container ls -aq) -f
|
||||||
|
docker system prune --all --volumes --force
|
||||||
|
sync; echo 3 > /proc/sys/vm/drop_caches
|
||||||
|
|
||||||
update-graphql-data-prod:
|
update-graphql-data-prod:
|
||||||
git pull origin master
|
git pull origin master
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
docker stop pokeapi_graphql-engine_1
|
docker compose stop graphql-engine
|
||||||
sync; echo 3 > /proc/sys/vm/drop_caches
|
sync; echo 3 > /proc/sys/vm/drop_caches
|
||||||
docker-compose -f docker-compose.yml -f docker-compose.override.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d app
|
docker compose -f docker-compose.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d app
|
||||||
make docker-migrate
|
make docker-migrate
|
||||||
make docker-build-db
|
make docker-build-db
|
||||||
docker stop pokeapi_app_1
|
docker compose stop app
|
||||||
sync; echo 3 > /proc/sys/vm/drop_caches
|
sync; echo 3 > /proc/sys/vm/drop_caches
|
||||||
docker exec pokeapi_web_1 sh -c 'rm -rf /tmp/cache/*'
|
docker compose exec -T web sh -c 'rm -rf /tmp/cache/*'
|
||||||
docker start pokeapi_graphql-engine_1
|
docker compose start graphql-engine
|
||||||
|
|
|
@ -9,7 +9,9 @@ services:
|
||||||
POSTGRES_USER: "${POSTGRES_USER}"
|
POSTGRES_USER: "${POSTGRES_USER}"
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: pokeapi/pokeapi:master
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Resources/docker/app/Dockerfile
|
||||||
env_file: .env
|
env_file: .env
|
||||||
restart: "no"
|
restart: "no"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue