parent
9785e52ed6
commit
61fa3cd7d4
1 changed files with 2 additions and 3 deletions
|
@ -14,7 +14,8 @@ jobs:
|
||||||
services:
|
services:
|
||||||
# Label used to access the service container
|
# Label used to access the service container
|
||||||
mydb:
|
mydb:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
|
hostname: mydb
|
||||||
env:
|
env:
|
||||||
POSTGRES_USER: alice
|
POSTGRES_USER: alice
|
||||||
POSTGRES_PASSWORD: iEx4Vj7zBb6
|
POSTGRES_PASSWORD: iEx4Vj7zBb6
|
||||||
|
@ -23,8 +24,6 @@ jobs:
|
||||||
# - 5432:5432
|
# - 5432:5432
|
||||||
options: |
|
options: |
|
||||||
--health-cmd pg_isready
|
--health-cmd pg_isready
|
||||||
--container_name mydb
|
|
||||||
--hostname mydb
|
|
||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
--health-retries 5
|
--health-retries 5
|
||||||
|
|
Loading…
Add table
Reference in a new issue