From 3ba6bc32241daa34b0ff53b488a7dbe96ea7242d Mon Sep 17 00:00:00 2001 From: Astrid Date: Thu, 5 Mar 2020 16:51:35 +0100 Subject: [PATCH] Fix initializing postgres on first startup (#153) --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5b6d6fa1..af1b8cfe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,6 +32,8 @@ services: - "db_data:/var/lib/postgresql/data" restart: always command: ["postgres", "-c", "max-connections=1000"] + environment: + - "POSTGRES_PASSWORD=postgres" influx: image: influxdb:alpine volumes: @@ -39,7 +41,7 @@ services: ports: - 2839:8086 restart: always - + volumes: db_data: influx_data: