Skip to content

Commit

Permalink
fix docker variable networking
Browse files Browse the repository at this point in the history
  • Loading branch information
krustowski committed Jul 8, 2024
1 parent b41b0f1 commit d35ad4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
APP_NAME=litter-go
APP_VERSION=0.35.2
GOLANG_VERSION=1.22

1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ DOCKER_COMPOSE_OVERRIDE?=deployments/docker-compose.override.yml
DOCKER_CONTAINER_NAME?=${PROJECT_NAME}-server
DOCKER_IMAGE_TAG?=${REGISTRY}backend:${APP_VERSION}-go${GOLANG_VERSION}
DOCKER_INTERNAL_PORT?=8080
DOCKER_NETWORK_NAME?=traefik
DOCKER_USER?=littr


Expand Down
6 changes: 3 additions & 3 deletions deployments/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: ${PROJECT_NAME}

networks:
traefik_savla:
traefik:
name: ${DOCKER_NETWORK_NAME}

volumes:
Expand Down Expand Up @@ -42,7 +42,7 @@ services:
ports:
- "${DOCKER_EXTERNAL_PORT}:${DOCKER_INTERNAL_PORT}"
networks:
- ${DOCKER_NETWORK_NAME}
- traefik
labels:
- "traefik.http.routers.${APP_NAME}.rule=Host(${APP_URLS_TRAEFIK})"
- "traefik.http.services.${APP_NAME}.loadbalancer.server.port=${DOCKER_INTERNAL_PORT}"
Expand Down Expand Up @@ -71,7 +71,7 @@ services:
BASE_PATH: "/api"
SWAGGER_JSON: "/tmp/swagger.json"
networks:
- ${DOCKER_NETWORK_NAME}
- traefik
volumes:
- "../api/swagger.json:/tmp/swagger.json"
labels:
Expand Down

0 comments on commit d35ad4d

Please sign in to comment.