name: panaderia
services:
  app:
    build: .
    container_name: panaderia
    hostname: panaderia
    environment:
      - CI_ENVIRONMENT=development
      - database.default.hostname=damp-db
      - database.default.database=panaderia_db
      - database.default.username=root
      - database.default.password=root
      - database.default.DBDriver=MySQLi
      - database.default.port=3306
    volumes:
      - ./:/app
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
    restart: unless-stopped
    networks:
      - damp

networks:
  damp:
    external: true
