diff --git a/README.md b/README.md index fce1fba00a9ca389e049a02e84bda8f7d41aa188..0a0c28986ab1b35a0f3267be2df7348ca107429a 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,22 @@ Firstly, run Docker daemon. Navigate into the project root directory `pb138-film-database-group-project`. +Create your `.env` file here if you haven't done it yet. Example is in the `.env.example` file. + Then in the root directory run `docker-compose up -d` to build, (re)create, start, and attach to containers for a service (optional flag `-d` runs containers in the background). When you are finished, run `docker-compose down` to stop and remove containers, networks and images created by `up`. +### Adminer +With Adminer we can manage our PostgreSQL database. + +To login to Adminer in your browser you need to specify: +* System: `PostgreSQL` +* Server: `postgres` (docker-compose database service name) +* Username: same as `DB_USER` in your .env file +* Password: same as `DB_PASSWORD` in your .env file +* Database: same as `DB_NAME` in your .env file + ## TODO More TBA as features are implemented. diff --git a/docker-compose.yml b/docker-compose.yml index 8c513cce4dd1263b30022d08a31719173de0de3d..a3c568507ecbf46ba016da700befbefada105898 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,6 +42,8 @@ services: env_file: .env ports: - 127.0.0.1:${ADMINER_PORT}:${ADMINER_PORT} + networks: + - backend-network environment: ADMINER_DESIGN: nette restart: always