NewsAtlas/docker-compose.yml

27 lines
688 B
YAML

services:
backend:
build: ./backend
container_name: newsatlas-backend
restart: unless-stopped
env_file:
- .env
volumes:
- ./data:/data
- ./backend/app/sources.yaml:/app/app/sources.yaml:ro
- ./backend/app/data/gazetteer.csv:/app/app/data/gazetteer.csv:ro
- ./backend/app/data/parliaments.yaml:/app/app/data/parliaments.yaml:ro
expose:
- "8000"
nginx:
image: nginx:alpine
container_name: newsatlas-nginx
restart: unless-stopped
depends_on:
- backend
ports:
- "${HTTP_PORT:-8080}:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./frontend:/usr/share/nginx/html:ro