Skip to content
Snippets Groups Projects
Commit 2949b122 authored by Lukáš Kratochvíl's avatar Lukáš Kratochvíl
Browse files

Merge branch 'backend-setup' into main

parents d952853c 14db74f3
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment