Skip to content

Commit f32571d

Browse files
committed
Add explicit env_file loading to all services in docker-compose.prod.yml
1 parent 426976a commit f32571d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docker-compose.prod.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
services:
22
postgres:
33
image: postgres:16-alpine
4+
env_file:
5+
- .env
46
container_name: week2-postgres
57
environment:
68
POSTGRES_USER: ${POSTGRES_USER:-postgres}
@@ -18,6 +20,8 @@ services:
1820
retries: 5
1921

2022
zookeeper:
23+
env_file:
24+
- .env
2125
image: confluentinc/cp-zookeeper:7.6.1
2226
container_name: week2-zookeeper
2327
environment:
@@ -37,6 +41,8 @@ services:
3741
start_period: 20s
3842

3943
kafka:
44+
env_file:
45+
- .env
4046
image: confluentinc/cp-kafka:7.6.1
4147
container_name: week2-kafka
4248
depends_on:
@@ -66,6 +72,8 @@ services:
6672
start_period: 20s
6773

6874
apis:
75+
env_file:
76+
- .env
6977
build:
7078
context: .
7179
dockerfile: apps/apis/Dockerfile
@@ -101,6 +109,8 @@ services:
101109
start_period: 40s
102110

103111
web:
112+
env_file:
113+
- .env
104114
build:
105115
context: .
106116
dockerfile: apps/web/Dockerfile
@@ -125,6 +135,8 @@ services:
125135
start_period: 40s
126136

127137
processor:
138+
env_file:
139+
- .env
128140
build:
129141
context: .
130142
dockerfile: apps/processor/Dockerfile
@@ -146,6 +158,8 @@ services:
146158
condition: service_healthy
147159

148160
workers:
161+
env_file:
162+
- .env
149163
build:
150164
context: .
151165
dockerfile: apps/workers/Dockerfile

0 commit comments

Comments
 (0)