Skip to content

Commit 571786d

Browse files
committed
Use an environment variable for the tag of the postgres image
[refs #2e355ae56da6]
1 parent 87f2d39 commit 571786d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compose_example/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ POSTGRES_DB=web_app_db
22
POSTGRES_USER=app
33
POSTGRES_PASSWORD=secret
44
POSTGRES_HOST=pg
5+
PG_VERSION=9.6-alpine
56
PROXY_UPSTREAM=webapp:9292

compose_example/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
- 80:80
1414

1515
pg:
16-
image: postgres:9.6-alpine
16+
image: postgres:${PG_VERSION:-9.6}
1717
environment:
1818
- POSTGRES_DB
1919
- POSTGRES_USER

0 commit comments

Comments
 (0)