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