Skip to content

Commit

Permalink
fix(docker): don't expose ports unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyker committed Aug 3, 2023
1 parent d2d0421 commit 0050fc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 1 addition & 3 deletions compose-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ services:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_TCP_PORT=4306
- MYSQL_UNIX_PORT=4306
ports:
- 4306:4306
volumes:
- ./docker/mysql:/var/lib/mysql
setup:
Expand All @@ -23,4 +21,4 @@ services:
- ./docker/setup.sh:/var/www/html/setup.sh
- ./:/var/www/html
working_dir: /var/www/html
command: [ "/bin/bash", "setup.sh" ]
command: [ "/bin/bash", "setup.sh" ]
8 changes: 1 addition & 7 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
links:
- solder
ports:
- 80:80
- "80:80"
volumes:
- ./docker/default.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html
Expand All @@ -20,8 +20,6 @@ services:
links:
- mysql:mysql
- redis:redis
ports:
- 9000:9000
volumes:
- .:/var/www/html
mysql:
Expand All @@ -34,12 +32,8 @@ services:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_TCP_PORT=4306
- MYSQL_UNIX_PORT=4306
ports:
- 4306:4306
volumes:
- ./docker/mysql:/var/lib/mysql
redis:
image: redis
restart: always
ports:
- 6379:6379

0 comments on commit 0050fc4

Please sign in to comment.