version: '3.5' services: web: env_file: - .env environment: DB_HOST: db DB_NAME: events DB_USERNAME: events DB_PASSWORD: events build: dockerfile: ./sample-apps/webhooks-contacts-app/Dockerfile context: ../../ depends_on: - db ports: - 3000:3000 db: image: mysql:8.0 command: mysqld --default-authentication-plugin=mysql_native_password volumes: - ./db/mysql:/var/lib/mysql ports: - 3306:3306 logging: driver: none environment: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: events_development MYSQL_USER: events MYSQL_PASSWORD: events ngrok: image: gtriggiano/ngrok-tunnel ports: - 4040:4040 environment: TARGET_HOST: web TARGET_PORT: 3000 depends_on: - web