2024-02-13 18:45:08 +01:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
services:
|
2024-05-15 16:04:50 +02:00
|
|
|
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
|
|
|
|
|
|
2024-02-13 18:45:08 +01:00
|
|
|
api:
|
2024-05-15 15:27:18 +02:00
|
|
|
build: ./api
|
2024-02-13 18:45:08 +01:00
|
|
|
ports:
|
|
|
|
|
- "4002:4002"
|
2024-05-15 16:04:50 +02:00
|
|
|
restart: unless-stopped
|
2024-05-15 22:45:19 +02:00
|
|
|
image: docker.dariusklein.nl/portfolio-api:latest
|
2024-05-15 16:04:50 +02:00
|
|
|
depends_on:
|
|
|
|
|
database:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
2024-05-15 22:45:19 +02:00
|
|
|
|