headline/docker-compose.yml

30 lines
591 B
YAML

version: "3.8"
services:
view:
build: ./view/
command: python app.py
ports:
- "5050:5000"
volumes:
- ./view:/app
- ./data:/data
- /etc/localtime:/etc/localtime
container_name: view
restart: unless-stopped
environment:
FLASK_DEBUG: ${FLASK_DEBUG}
processor:
build: ./processor/
volumes:
- ./processor:/app
- ./data:/data
- /etc/localtime:/etc/localtime
container_name: processor
restart: unless-stopped
redis:
image: redis:latest
restart: unless-stopped
container_name: redis_db