Skip to content

Commit

Permalink
Set hostname for testdb containers.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed May 14, 2024
1 parent 8e82cbc commit 82ec7e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ services:
- postgres
- mysql
environment:
POSTGRES_HOST: postgres
POSTGRES_HOST: mito-test-postgres
POSTGRES_USER: mito
POSTGRES_PASS: mito
MYSQL_HOST: mysql
MYSQL_HOST: mito-test-mysql
MYSQL_USER: root
MYSQL_PASS: mito

postgres:
container_name: mito-postgres
hostname: mito-test-postgres
image: "postgres:10"
restart: always
environment:
POSTGRES_USER: mito
POSTGRES_PASSWORD: mito

mysql:
container_name: mito-mysql
hostname: mito-test-mysql
image: "mysql:8"
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: mito

0 comments on commit 82ec7e6

Please sign in to comment.