We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4e6138 commit d8aaf76Copy full SHA for d8aaf76
compose_example/.env
@@ -0,0 +1,4 @@
1
+POSTGRES_DB=web_app_db
2
+POSTGRES_USER=app
3
+POSTGRES_PASSWORD=secret
4
+POSTGRES_HOST=pg
compose_example/docker-compose.yml
@@ -10,18 +10,22 @@ services:
10
11
pg:
12
image: postgres:9.6-alpine
13
- env_file:
14
- - ./db.env
+ environment:
+ - POSTGRES_DB
15
+ - POSTGRES_USER
16
+ - POSTGRES_PASSWORD
17
volumes:
18
- pg-data:/var/lib/postgresql/data
19
20
webapp:
21
image: jfahrer/demo_web_app:latest
22
ports:
23
- 9292:9292
24
- - ./app.env
25
26
27
28
+ - POSTGRES_HOST
29
30
alpine:
31
image: alpine:latest
0 commit comments