2024-11-07 18:12:53 -08:00
|
|
|
version: '3.9'
|
|
|
|
|
2024-10-23 16:14:47 -07:00
|
|
|
services:
|
2024-11-07 18:12:53 -08:00
|
|
|
# Flask service
|
2024-10-23 16:14:47 -07:00
|
|
|
backend:
|
2024-11-07 18:12:53 -08:00
|
|
|
container_name: backend
|
|
|
|
build:
|
|
|
|
context: ./backend-flask
|
|
|
|
#image: jazzdd/alpine-flask:python3
|
2024-10-23 16:14:47 -07:00
|
|
|
ports:
|
2024-11-07 18:12:53 -08:00
|
|
|
- ":5000"
|
2024-10-23 16:14:47 -07:00
|
|
|
volumes:
|
2024-11-07 18:12:53 -08:00
|
|
|
- ./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:
|
2024-11-07 18:12:53 -08:00
|
|
|
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
|