Skip to content

Commit

Permalink
- update files
Browse files Browse the repository at this point in the history
  • Loading branch information
Blusia committed Sep 27, 2024
1 parent 9dbb22e commit 5b8cfc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions environment/prod/deployment/prod/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ CURRENT_USER_GROUP_ID = $(shell id --group)

DOCKER_COMPOSE_FILENAME = docker-compose.prod.yml
DOCKER_COMPOSE_APP_SERVICE = keating-prod-app
PROJECT_NAME=keating-prod

DOCKER_EXEC_SCRIPT = docker compose --file ${DOCKER_COMPOSE_FILENAME} exec --workdir /application/environment/prod/deployment/scripts ${DOCKER_COMPOSE_APP_SERVICE} bash

CURRENT_DIR = $(shell pwd)

prod-deploy: decrypt-secrets create-deployment-file
@docker compose --project-name keating-prod --file ${DOCKER_COMPOSE_FILENAME} pull && \
docker compose --project-name keating-prod --file ${DOCKER_COMPOSE_FILENAME} up --detach && \
@docker compose --project-name ${PROJECT_NAME} --file ${DOCKER_COMPOSE_FILENAME} pull && \
docker compose --project-name ${PROJECT_NAME} --file ${DOCKER_COMPOSE_FILENAME} up --detach && \
sleep 5 && \
echo "App post deploy actions" && \
${DOCKER_EXEC_SCRIPT} post-deploy-actions.sh
Expand Down
1 change: 1 addition & 0 deletions environment/prod/deployment/prod/docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ networks:
external: true
keating-prod:
driver: bridge
name: keating-prod

volumes:
keating-prod-postgres-data:
Expand Down

0 comments on commit 5b8cfc6

Please sign in to comment.