Skip to content

Commit

Permalink
Enhancement: Bind nginx and phpmyadmin to ports 8081 and 8082
Browse files Browse the repository at this point in the history
Using these port nubmers so that it is less likely to clash with system ports like `80` and to widely used `8080`.
  • Loading branch information
leojonathanoh committed Sep 30, 2022
1 parent 5c35371 commit 0c6a901
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Notes:
```sh
# Start
docker-compose up --build
# Dashboard now available at http://localhost/ASP, username: admin, password admin. See ./config/ASP/config.php config file
# phpmyadmin available at http://localhost:8080. Username: root, password: ascent. See ./config/ASP/config.php config file
# Dashboard now available at http://localhost:8081/ASP, username: admin, password admin. See ./config/ASP/config.php config file
# phpmyadmin available at http://localhost:8082. Username: root, password: ascent. See ./config/ASP/config.php config file

# If xdebug is not working, iptables INPUT chain may be set to DROP on the docker bridge.
# Execute this to allow php to reach the host machine via the docker0 bridge
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro # Customize as needed
ports:
- 80:80
- 8081:80
networks:
- bf2-network
depends_on:
Expand Down Expand Up @@ -92,7 +92,7 @@ services:
# - PMA_ABSOLUTE_URI=https://phpmyadmin.example.com # Enable this if behind a reverse proxy
- PMA_HOST=db
ports:
- 8080:80
- 8082:80
networks:
- bf2-network
restart: unless-stopped
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
- ./src:/src
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- 80:80
- 8081:80
networks:
- bf2-network
depends_on:
Expand Down Expand Up @@ -100,7 +100,7 @@ services:
environment:
- PMA_HOST=db
ports:
- 8080:80
- 8082:80
networks:
- bf2-network

Expand Down

0 comments on commit 0c6a901

Please sign in to comment.