mirror of
https://github.com/mblanke/ThreatHunt.git
synced 2026-03-01 14:00:20 -05:00
47 lines
822 B
YAML
47 lines
822 B
YAML
version: '3.8'
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: backend
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "5000:5000"
|
|
volumes:
|
|
- ./backend:/app
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
container_name: frontend
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./frontend:/app
|
|
depends_on:
|
|
- backend
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
ports:
|
|
- "5432:5432"
|
|
container_name: postgres
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
POSTGRES_DB: ${POSTGRES_DB}
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
postgres-data:
|
|
driver: local
|
|
|
|
|