Skip to content
Snippets Groups Projects
Commit 501c4a1f authored by Manuel Herrmann's avatar Manuel Herrmann Committed by GitHub
Browse files

Merge pull request #50 from TimRepke/mysqldocker

add PMA to docker for easier db magic
parents f23c9391 ee303ae8
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,22 @@ docker-compose up -d
### Step 4
Wait for containers to start up.
Run a bash inside the web container (`docker exec -it registrationsystem_web_1 bash`) and
```
cd usr/share/nginx/html/
echo 2 > config_current_fahrt_id
chmod 777 config_current_fahrt_id
cp passwd/users.example.txt passwd/users.txt
```
Open http://localhost:8080 in your browser
Admin interface is at http://localhost:8080/admin (login with sudo:password)
For phpMyAdmin find the IP it runs on (`docker inspect registrationsystem_phpmyadmin_1` and find IPAddress) and open
http://<ip>:8090
## Mysql Dump Upgrade
Remove containers as in cleanup, remove mysql_dump folder and start again
......
......@@ -7,6 +7,18 @@ web:
volumes:
- ./registration-system:/usr/share/nginx/html
pma:
image: phpmyadmin/phpmyadmin
links:
- db
environment:
- PMA_HOST=db
- PMA_PORT=3306
- PMA_USER=fsfahrt
- PMA_PASSWORD=9Lug*96q
ports:
- "8090:80"
db:
build: docker
dockerfile: DockerfileMariaDB
......
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