Skip to content

Commit

Permalink
fix docker volume deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
krustowski committed Jul 8, 2024
1 parent ef0bab1 commit 81d736a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
DOCKER_CONTAINER_NAME: ${{ secrets.DOCKER_CONTAINER_NAME }}
DOCKER_EXTERNAL_PORT: ${{ secrets.DOCKER_EXTERNAL_PORT }}
DOCKER_NETWORK_NAME: ${{ secrets.DOCKER_NETWORK_NAME }}
DOCKER_VOLUME_DATA_NAME: ${{ vars.DOCKER_VOLUME_DATA_NAME }}
DOCKER_VOLUME_PIX_NAME: ${{ vars.DOCKER_VOLUME_PIX_NAME }}
LOKI_URL: ${{ secrets.LOKI_URL }}
MAIL_HOST: ${{ secrets.MAIL_HOST }}
MAIL_PORT: ${{ secrets.MAIL_PORT }}
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ DOCKER_IMAGE_TAG?=${REGISTRY}backend:${APP_VERSION}-go${GOLANG_VERSION}
DOCKER_INTERNAL_PORT?=8080
DOCKER_NETWORK_NAME?=traefik
DOCKER_USER?=littr

DOCKER_VOLUME_DATA_NAME?="litter-data"
DOCKER_VOLUME_PIX_NAME?="litter-pix"

# define standard colors
# https://gist.github.com/rsperl/d2dfe88a520968fbc1f49db0a29345b9
Expand Down
4 changes: 2 additions & 2 deletions deployments/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ networks:

volumes:
litter-data:
name: "litter-data"
name: ${DOCKER_VOLUME_DATA_NAME}
litter-pix:
name: "litter-pix"
name: ${DOCKER_VOLUME_PIX_NAME}

services:
litter-backend:
Expand Down

0 comments on commit 81d736a

Please sign in to comment.