services:
  app:
    build:
      context: .
    image: registry.gitlab.sl-projects.com/sofianelasri/rann-graphic-design-website:latest
    working_dir: /app
    entrypoint: ["docker-init/entrypoint.sh"]
    ports:
      - '80:8000'
      - '5173:5173'
    volumes:
      - .:/app
      - /app/vendor
      - /app/node_modules
      - /app/public/build
    networks:
      - app-network

  redis:
    image: redis:alpine
    container_name: rann-graphic-design-website-redis
    restart: unless-stopped
    tty: true
    ports:
      - "6379:6379"
    networks:
      - app-network

networks:
  app-network:
    driver: bridge
