2022-10-23 11:55:47 +02:00
|
|
|
services:
|
|
|
|
|
database:
|
|
|
|
|
image: mysql:latest
|
|
|
|
|
restart: always
|
|
|
|
|
env_file: ./database/.env
|
2023-01-20 09:38:50 +01:00
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
2022-10-23 11:55:47 +02:00
|
|
|
ports:
|
|
|
|
|
- 3306:3306
|
2023-01-20 09:38:50 +01:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
|
|
|
|
timeout: 20s
|
|
|
|
|
retries: 10
|
2022-11-21 18:50:59 +01:00
|
|
|
|
|
|
|
|
http:
|
|
|
|
|
build:
|
|
|
|
|
context: ..
|
|
|
|
|
dockerfile: ./docker/server/Dockerfile
|
|
|
|
|
restart: always
|
2023-01-20 09:38:50 +01:00
|
|
|
env_file: ./server/.env
|
|
|
|
|
ports:
|
|
|
|
|
- 3000:3000
|
|
|
|
|
depends_on:
|
|
|
|
|
database:
|
|
|
|
|
condition: service_healthy
|