Skip to content

Commit f11955c

Browse files
feat: add .env to different folder
1 parent 2d17e42 commit f11955c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ services:
3131
- "traefik.http.middlewares.dashboard-auth.basicauth.users=admin:$2y$05$2hQXRr9Rpo8aJs0ERvDMauAwYEHPh7eSvTY.CTzLyBYKr.mkGInKO"
3232
restart: always
3333
env_file:
34-
- /opt/khel/.env.prod # Production environment variables
34+
- .env.prod # Production environment variables
3535
volumes:
3636
- /opt/khel/letsencrypt:/letsencrypt # Persistent cert storage
3737
- /var/run/docker.sock:/var/run/docker.sock:ro # Read-only Docker socket
@@ -45,9 +45,9 @@ services:
4545
container_name: khel-prod
4646
build:
4747
context: .
48-
dockerfile: Dockerfile
48+
dockerfile: dockerfile
4949
env_file:
50-
- /opt/khel/.env.prod # Production environment variables
50+
- .env.prod # Production environment variables
5151
deploy:
5252
update_config:
5353
failure_action: rollback
@@ -81,9 +81,9 @@ services:
8181
container_name: khel-staging
8282
build:
8383
context: .
84-
dockerfile: Dockerfile
84+
dockerfile: dockerfile
8585
env_file:
86-
- /opt/khel/.env.staging # Staging environment variables
86+
- .env.staging # Staging environment variables
8787
labels:
8888
- "traefik.enable=true"
8989
- "traefik.http.routers.khel-staging.rule=Host(`api.staging.gocloudnepal.com`)"

0 commit comments

Comments
 (0)