availabili.tf/docker-compose.yml

47 lines
811 B
YAML
Raw Normal View History

version: '3.9'
2024-10-23 16:14:47 -07:00
services:
# Flask service
2024-10-23 16:14:47 -07:00
backend:
container_name: backend
build:
context: ./backend-flask
#image: jazzdd/alpine-flask:python3
2024-10-23 16:14:47 -07:00
ports:
- ":5000"
2024-10-23 16:14:47 -07:00
volumes:
- ./backend-flask:/app
networks:
- dev-network
# Vue + Vite service
frontend:
container_name: frontend
build:
context: ./availabili.tf
ports:
- ":5173"
2024-10-23 16:14:47 -07:00
environment:
VITE_API_URL: http://localhost:8000 # API endpoint
volumes:
- ./availabili.tf:/app
networks:
- dev-network
# NGINX service
nginx:
image: nginx:latest
ports:
- "8000:80"
volumes:
- ./nginx:/etc/nginx/conf.d
depends_on:
- backend
- frontend
networks:
- dev-network
networks:
dev-network:
driver: bridge