Skip to content

Commit be2ff4b

Browse files
committed
Don't expose port + set mysql hostname
1 parent 609cb14 commit be2ff4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docker-compose.test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
environment:
1212
- CI_ENV=testing
1313
- ENCRYPTION_KEY=
14-
- MYSQL_HOST_NAME=127.0.0.1
14+
- MYSQL_HOST_NAME=mysql
1515
- MYSQL_DATABASE=ospos
1616
- MYSQL_USERNAME=admin
1717
- MYSQL_PASSWORD=pointofsale
@@ -25,8 +25,6 @@ services:
2525
image: mariadb:10.3
2626
container_name: mysql
2727
restart: always
28-
ports:
29-
- "3306:3306"
3028
volumes:
3129
- ./database/database.sql:/docker-entrypoint-initdb.d/database.sql
3230
environment:

0 commit comments

Comments
 (0)