mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:14:03 +00:00
Update ci.yml
This commit is contained in:
parent
e58efc5964
commit
b66a163393
1 changed files with 19 additions and 7 deletions
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
|
|
@ -45,14 +45,26 @@ jobs:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:latest
|
image: 'postgres:latest'
|
||||||
env:
|
|
||||||
POSTGRES_PASSWORD: 'postgres'
|
|
||||||
POSTGRES_USER: 'postgres'
|
|
||||||
POSTGRES_DB: main
|
|
||||||
ports:
|
ports:
|
||||||
- 5432/tcp
|
- '5432/tcp'
|
||||||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3
|
environment:
|
||||||
|
PGPASSWORD: '${POSTGRES_PASSWORD:-postgres}'
|
||||||
|
PGPORT: '${POSTGRES_PORT:-5432}'
|
||||||
|
POSTGRES_DB: main
|
||||||
|
POSTGRES_USER: '${POSTGRES_USER:-postgres}'
|
||||||
|
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD:-postgres}'
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
- CMD
|
||||||
|
- pg_isready
|
||||||
|
- '-q'
|
||||||
|
- '-d'
|
||||||
|
- '${DB_DATABASE}'
|
||||||
|
- '-U'
|
||||||
|
- '${DB_USERNAME}'
|
||||||
|
retries: 3
|
||||||
|
timeout: 5s
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue