Files
WeatherTool/docker-compose.yml
T

30 lines
598 B
YAML
Raw Normal View History

2023-12-19 14:47:45 +02:00
version: '3'
services:
2023-12-19 16:06:32 +02:00
node:
image: node:16.13.1
working_dir: /app/web
volumes:
- $PWD/web:/app/web
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"
environment:
POSTGRES_DB: weather-tool
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
volumes:
- /var/lib/postgresql/data:/var/lib/postgresql/data
2023-12-19 16:06:32 +02:00
scala:
2023-12-19 14:47:45 +02:00
build:
context: .
dockerfile: Dockerfile.local
volumes:
- $PWD:/app
ports:
- "8080:8080"
depends_on:
- postgres