Skip to content

Commit

Permalink
added port to compose
Browse files Browse the repository at this point in the history
  • Loading branch information
caitoor committed May 6, 2024
1 parent a56e0b2 commit 7986cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ MONGO_INITDB_ROOT_PASSWORD=your-dbpass
# don't use dots in the subdomain names
DOMAIN=your-website.com
FRONTEND_SUBDOMAIN=starbugs
FRONTEND_CONTAINER_NAME=frontend
# make sure that the backend subdomain matches the one in the frontend .env file
BACKEND_SUBDOMAIN=starbugs_api
VITE_API_BASE_URL=https://api.your-website.com
BACKEND_CONTAINER_NAME=backend
API_PORT=3000
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.6"
version: "3.8"

services:
frontend:
Expand Down Expand Up @@ -48,6 +48,8 @@ services:
- "traefik.http.routers.${BACKEND_SUBDOMAIN}.tls.certresolver=cf"
- "traefik.http.services.${BACKEND_SUBDOMAIN}.loadbalancer.server.port=${API_PORT}"
- "traefik.http.services.${BACKEND_SUBDOMAIN}.loadbalancer.server.scheme=https"
ports:
- "3000:3000"
networks:
- proxy
- starbugs
Expand Down

0 comments on commit 7986cc4

Please sign in to comment.