Files
TallerCiCd/docker-compose.yml
jose-rZM 0446a84e80
Some checks failed
CD/pipeline/head Something is wrong with the build of this commit
Add vite api base
2025-12-23 18:53:36 +01:00

49 lines
1.0 KiB
YAML

services:
backend:
build:
context: ./backend
image: cafeteria-backend:${BACKEND_TAG}
networks:
- cafeteria
ports:
- "8000:8000"
environment:
JENKINS_BASE_URL: ${JENKINS_BASE_URL}
JENKINS_JOB_NAME: ${JENKINS_JOB_NAME}
JENKINS_USER: ${JENKINS_USER}
JENKINS_TOKEN: ${JENKINS_TOKEN}
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8000/health').read()"
]
interval: 10s
timeout: 3s
retries: 5
frontend:
build:
context: ./frontend
image: cafeteria-frontend:${FRONTEND_TAG}
environment:
VITE_API_BASE: ${VITE_API_BASE}
networks:
- cafeteria
ports:
- "8081:8081"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
networks:
cafeteria:
enable_ipv6: true
ipam:
config:
- subnet: 2001:db8::/64