Skip to content

Commit

Permalink
mount .env as volume
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulov1337 committed Dec 15, 2024
1 parent 1b572f6 commit 3e04c52
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ services:
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASS}
- DB_NAME=${DB_NAME}
volumes:
- .env:/app/.env
depends_on:
- postgres
networks:
Expand All @@ -36,6 +38,8 @@ services:
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY}
- REDIS_HOST=redis
- REDIS_PORT=6379
volumes:
- .env:/app/.env
depends_on:
- postgres
- minio
Expand Down Expand Up @@ -133,6 +137,8 @@ services:
image: rasulovarsen/ads_service:latest
ports:
- "50052:50052"
volumes:
- .env:/app/.env
depends_on:
- redis
- postgres
Expand All @@ -153,6 +159,8 @@ services:
image: rasulovarsen/auth_service:latest
ports:
- "50051:50051"
volumes:
- .env:/app/.env
depends_on:
- redis
- postgres
Expand All @@ -172,6 +180,8 @@ services:
image: rasulovarsen/city_service:latest
ports:
- "50053:50053"
volumes:
- .env:/app/.env
depends_on:
- redis
- postgres
Expand Down

0 comments on commit 3e04c52

Please sign in to comment.