services: web: build: context: . dockerfile: Dockerfile restart: unless-stopped depends_on: - db ports: - "80" environment: DB_HOST: db DB_USER: root DB_PASSWORD: webgisidolapass db: build: context: ./db dockerfile: Dockerfile restart: unless-stopped environment: MYSQL_ROOT_PASSWORD: webgisidolapass MYSQL_ROOT_HOST: "%" command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci healthcheck: test: ["CMD-SHELL", "mysqladmin ping -h localhost -uroot -pwebgisidolapass --silent"] interval: 10s timeout: 5s retries: 10