Files
latosa-escrima/docker-compose.yaml
2025-02-11 10:01:36 +00:00

50 lines
1.1 KiB
YAML

services:
latosa-escrima.fr-frontend:
container_name: latosa-frontend
image: cems.dev:5000/latosa-escrima.fr:latest
#build:
# context: ./frontend/
# dockerfile: Dockerfile
# target: final
depends_on:
- latosa-escrima.fr-backend
env_file: .env
ports:
- ${FRONTEND_PORT}:${FRONTEND_DOCKER_PORT}
restart: always # Ensures the container restarts on failure or Docker restart
networks:
- le-network
latosa-escrima.fr-backend:
restart: always
container_name: latosa-backend
depends_on:
- psql
volumes:
- ./backend/media:/app/media
build:
context: ./backend/
dockerfile: Dockerfile
env_file: .env
ports:
- ${BACKEND_PORT}:${BACKEND_DOCKER_PORT}
networks:
- le-network
psql:
container_name: latosa-database
image: postgres:17.2-alpine
restart: always
env_file: .env
ports:
- ${POSTGRES_PORT}:${POSTGRES_DOCKER_PORT}
volumes:
- le-data:/var/lib/postgresql/data
networks:
- le-network
volumes:
le-data:
networks:
le-network:
driver: bridge