Browse Source

postgres containers renamed db, fix #63

Guilhem Saurel 6 years ago
parent
commit
26af0c670a

+ 2 - 1
dolibarr/README.md

@@ -10,7 +10,8 @@ docker-compose exec app chown www-data documents conf/conf.php
 ```
 
 Go to your webbrowser to finish installation:
-- DB name / DB host / DB user: `postgres`
+- DB host: `db`
+- DB name / DB user: `postgres`
 - DB password: look inside .env
 - DB port: empty
 

+ 1 - 1
dolibarr/docker-compose.yml

@@ -8,7 +8,7 @@ volumes:
   data:
 
 services:
-  postgres:
+  db:
     image: postgres:10-alpine
     restart: unless-stopped
     env_file:

+ 1 - 1
limesurvey/config.php

@@ -24,7 +24,7 @@
 return array(
 	'components' => array(
 		'db' => array(
-			'connectionString' => 'pgsql:host=postgres;port=5432;user=postgres;password=POSTGRES_PASSWORD;dbname=postgres;',
+			'connectionString' => 'pgsql:host=db;port=5432;user=postgres;password=POSTGRES_PASSWORD;dbname=postgres;',
 			'emulatePrepare' => true,
 			'username' => 'postgres',
 			'password' => 'POSTGRES_PASSWORD',

+ 1 - 1
limesurvey/docker-compose.yml

@@ -8,7 +8,7 @@ volumes:
   data:
 
 services:
-  postgres:
+  db:
     image: postgres:11-alpine
     restart: unless-stopped
     env_file:

+ 4 - 4
sentry/docker-compose.yml

@@ -7,7 +7,7 @@ services:
   memcached:
     image: memcached:alpine
     restart: unless-stopped
-  postgres:
+  db:
     image: postgres:11-alpine
     restart: unless-stopped
     volumes:
@@ -25,7 +25,7 @@ services:
       traefik.frontend.rule: "Host: ${CHATONS_SERVICE:-sentry}.${CHATONS_DOMAIN:-localhost}, www.${CHATONS_SERVICE:-sentry}.${CHATONS_DOMAIN:-localhost}"
     environment:
       - SENTRY_REDIS_HOST=redis
-      - SENTRY_POSTGRES_HOST=postgres
+      - SENTRY_POSTGRES_HOST=db
       - SENTRY_SERVER_EMAIL=${CHATONS_SERVICE:-sentry}@${CHATONS_DOMAIN:-localhost}
     volumes:
       - ${CHATONS_ROOT_DIR:-/srv/chatons}/${CHATONS_SERVICE:-sentry}/data:/var/lib/sentry/file
@@ -37,7 +37,7 @@ services:
       - .env
     environment:
       - SENTRY_REDIS_HOST=redis
-      - SENTRY_POSTGRES_HOST=postgres
+      - SENTRY_POSTGRES_HOST=db
   worker:
     command: "sentry run worker"
     image: sentry
@@ -46,7 +46,7 @@ services:
       - .env
     environment:
       - SENTRY_REDIS_HOST=redis
-      - SENTRY_POSTGRES_HOST=postgres
+      - SENTRY_POSTGRES_HOST=db
 
 networks:
   web: