to_inventory/docker-compose.yml

57 lines
1.1 KiB
YAML

services:
back:
build:
context: ./back
dockerfile: Dockerfile
container_name: toinv-back
restart: always
expose:
- "8000"
healthcheck:
test: curl -f http://localhost:8000 || exit 1
interval: 5s
timeout: 3s
retries: 20
volumes:
- ./.env:/app/.env
networks:
- toinv-network
image: ci.svs-tech.pro/toinv_back:latest
front:
build:
context: ./front
dockerfile: Dockerfile
container_name: toinv-front
restart: always
expose:
- "3000"
depends_on:
back:
condition: service_healthy
networks:
- toinv-network
image: ci.svs-tech.pro/toinv_front:latest
nginx:
image: ci.svs-tech.pro/nginx:1.25
container_name: toinv-nginx
restart: always
ports:
- "${WEB_PORT}:80"
depends_on:
back:
condition: service_healthy
links:
- back:back
- front:front
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
networks:
- toinv-network
networks:
toinv-network:
driver: bridge