Skip to content
Snippets Groups Projects
Commit 275934d3 authored by Tim Repke's avatar Tim Repke
Browse files

add mysql to docker for easier db magic

parent f23c9391
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,21 @@ 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 1 > 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,20 @@ web:
volumes:
- ./registration-system:/usr/share/nginx/html
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db
environment:
- PMA_HOST=db
- PMA_PORT=3306
- PMA_USER=fsfahrt
- PMA_PASSWORD=9Lug*96q
ports:
- "8090:80"
volumes:
- /sessions
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