Skip to content

Commit 82ec7e6

Browse files
committed
Set hostname for testdb containers.
1 parent 8e82cbc commit 82ec7e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker-compose.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ services:
1515
- postgres
1616
- mysql
1717
environment:
18-
POSTGRES_HOST: postgres
18+
POSTGRES_HOST: mito-test-postgres
1919
POSTGRES_USER: mito
2020
POSTGRES_PASS: mito
21-
MYSQL_HOST: mysql
21+
MYSQL_HOST: mito-test-mysql
2222
MYSQL_USER: root
2323
MYSQL_PASS: mito
2424

2525
postgres:
2626
container_name: mito-postgres
27+
hostname: mito-test-postgres
2728
image: "postgres:10"
28-
restart: always
2929
environment:
3030
POSTGRES_USER: mito
3131
POSTGRES_PASSWORD: mito
3232

3333
mysql:
3434
container_name: mito-mysql
35+
hostname: mito-test-mysql
3536
image: "mysql:8"
3637
command: --default-authentication-plugin=mysql_native_password
37-
restart: always
3838
environment:
3939
MYSQL_ROOT_PASSWORD: mito

0 commit comments

Comments
 (0)