aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yml12
1 files changed, 7 insertions, 5 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index e9d0ec9..d8ca319 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -9,19 +9,21 @@ services:
ports:
- "8888:8888"
environment:
- - POSTGRES_PASSWORD=postgres
+ - POSTGRES_DB=${POSTGRES_DB}
+ - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
+ - POSTGRES_USER=${POSTGRES_USER}
depends_on:
- postgres
postgres:
container_name: clog-postgres
- image: postgres:12-alpine
+ image: postgres:14-alpine
volumes:
- .vols/database:/var/lib/postgresql/data
ports:
- "5555:5432"
environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=postgres
- - POSTGRES_DB=clog
+ - POSTGRES_DB=${POSTGRES_DB}
+ - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
+ - POSTGRES_USER=${POSTGRES_USER}