docker fix
This commit is contained in:
parent
f103aafda8
commit
2e63bcb570
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
/api/.env
|
||||
**.env
|
||||
|
||||
@ -1,8 +1,25 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
database:
|
||||
image: mysql
|
||||
restart: always
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- '3306:3306'
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
api:
|
||||
build: ./api
|
||||
ports:
|
||||
- "4002:4002"
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
database:
|
||||
condition: service_healthy
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user