From 57efa80acf472f8730c389f7c1b7ab24cf6da148 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 25 Aug 2019 20:59:45 +0200 Subject: [PATCH] fix(docker-compose): set container name for postgres instance --- docker-compose.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 01f2a97..b966653 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,17 +1,16 @@ version: '3' - services: - flucky-db: + container_name: postgres environment: - - PGTZ=${TZ} - - POSTGRES_PASSWORD=${PG_PASSWORD} - - POSTGRES_USER=${PG_USER} - - POSTGRES_DB=${PG_NAME} - - TZ=${TZ} + - PGTZ=${TZ} + - POSTGRES_PASSWORD=${PG_PASSWORD} + - POSTGRES_USER=${PG_USER} + - POSTGRES_DB=${PG_NAME} + - TZ=${TZ} image: postgres:11.5-alpine ports: - - ${PG_EXTERN_PORT}:${PG_INTERN_PORT}/tcp + - ${PG_EXTERN_PORT}:${PG_INTERN_PORT}/tcp restart: always volumes: - - /etc/localtime:/etc/localtime:ro + - /etc/localtime:/etc/localtime:ro