diff --git a/README_docker.md b/README_docker.md index 0357cee4c6f50d4ec99d6fb77fe18de08492354b..6031d1d567e717e030c51669e50ed1bfdbe6f149 100644 --- a/README_docker.md +++ b/README_docker.md @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 2840a3fa494f9eb3465e32775c37c744d08f4b65..a99bf1193fa0e7f7f1d4ab058b9b666605821dbb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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