File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1- # .dockerignore
21.git
32build
43bin
Original file line number Diff line number Diff line change 1- version : " 3.8"
2-
31services :
42 reverse-proxy :
53 image : traefik:v3.4
@@ -33,13 +31,22 @@ services:
3331 build :
3432 context : .
3533 dockerfile : Dockerfile
34+ ports :
35+ - " 8080:8080"
3636 labels :
3737 - " traefik.enable=true"
38- - " traefik.http.routers.khel.rule=Host(`gocloudnepal.com`)"
38+ - " traefik.http.routers.khel.rule=Host(`api. gocloudnepal.com`)"
3939 - " traefik.http.routers.khel.entrypoints=websecure"
4040 - " traefik.http.routers.khel.tls.certresolver=myresolver"
41+ # When you publish a single container port, Traefik will auto-detect it—
42+ # but it’s still best practice to be explicit:
43+ - " traefik.http.services.khel.loadbalancer.server.port=8080"
44+ # mount your host .env into /app/.env (read-only)
45+ volumes :
46+ - ./.env:/app/.env:ro
47+ # also inject those same vars into the process env
4148 env_file :
42- - .env
49+ - ./. env
4350 restart : always
4451
4552 watchtower :
You can’t perform that action at this time.
0 commit comments