Commit ce62c88f authored by Julien Fastré's avatar Julien Fastré

add pgadmin to docker-compose

parent d27f01e0
......@@ -92,6 +92,17 @@ docker-compose exec --user <uid> php ./composer.phar
docker-compose run --user <uid> php ./composer.phar
```
### How to access to PGADMIN ?
Pgadmin is installed with docker-compose.
You can access it at http://localhost:8002 .
Credentials:
- login: admin@chill.social
- password: password
## Running in production
......
......@@ -6,13 +6,13 @@ services:
context: .
args:
UID: ${PHP_FPM_USER:-1000}
image: registry.champs-libres.be/chill/php:${VERSION:-latest}
image: chill/activity-person-report-php:${VERSION:-latest}
volumes:
- .:/var/www/app
environment:
- "COMPOSER_HOME=/var/www/app/.composer"
- "APP_DEBUG=${APP_DEBUG:-false}"
- "APP_ENV=${APP_ENV:-prod}"
- "APP_DEBUG=${APP_DEBUG:-true}"
- "APP_ENV=${APP_ENV:-dev}"
- "DATABASE_HOST=db"
- "DATABASE_PORT=5432"
- "DATABASE_NAME=postgres"
......@@ -30,7 +30,7 @@ services:
build:
context: .
dockerfile: docker/nginx/Dockerfile
image: registry.champs-libres.be/chill/nginx:${VERSION:-latest}
image: chill/activity-person-report-nginx:${VERSION:-latest}
volumes:
- .:/var/www/app
# - ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
......@@ -52,6 +52,15 @@ services:
build:
context: ./docker/logstash
pgadmin:
image: dpage/pgadmin4
links:
- db
environment:
- "PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL:-admin@chill.social}"
- "PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD:-password}"
ports:
- "8002:80"
# fake smtp server
smtp:
image: schickling/mailcatcher
......
......@@ -6,3 +6,6 @@ APP_ENV=dev
PHP_FPM_USER=1000
# the group which run php-fpm. Adapt it to your current gid. (get it with `$ id`)
PHP_FPM_GROUP=1000
# the credential to access to pgadmin
PGADMIN_DEFAULT_EMAIL=admin@chill.social
PGADMIN_DEFAULT_PASSWORD=password
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment