Files
WeatherTool/docker-compose.yml
T

41 lines
968 B
YAML
Raw Normal View History

2023-12-19 14:47:45 +02:00
services:
2023-12-19 16:06:32 +02:00
node:
image: node:16.13.1
working_dir: /app/web
volumes:
- ./web:/app/web
2023-12-19 16:06:32 +02:00
command: sh -c "npm install && npm run build"
2023-12-19 14:47:45 +02:00
postgres:
2023-12-19 16:06:32 +02:00
image: postgres:16.1
2023-12-19 14:47:45 +02:00
ports:
- "5432:5432"
2023-12-19 17:48:48 +02:00
healthcheck:
2023-12-28 12:11:08 +02:00
test: [ "CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}" ]
2023-12-19 17:48:48 +02:00
interval: 5s
timeout: 5s
retries: 5
2023-12-19 14:47:45 +02:00
environment:
2023-12-19 17:48:48 +02:00
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
2023-12-19 14:47:45 +02:00
volumes:
2023-12-28 12:11:08 +02:00
- ./postgres:/var/lib/postgresql/data
2023-12-19 14:47:45 +02:00
2023-12-19 16:06:32 +02:00
scala:
2023-12-19 17:48:48 +02:00
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
METEO_USER: ${METEO_USER}
METEO_PASSWORD: ${METEO_PASSWORD}
METEO_URL: ${METEO_URL}
2023-12-19 14:47:45 +02:00
build:
context: .
dockerfile: Dockerfile.local
volumes:
- ./:/app
2023-12-19 14:47:45 +02:00
ports:
2023-12-28 12:11:08 +02:00
- "9090:8080"
2023-12-19 14:47:45 +02:00
depends_on:
- postgres