version: '3.8' services: server: build: context: . dockerfile: server.dockerfile image: monitoring-server:latest env_file: - .env environment: - GOOGLE_APPLICATION_CREDENTIALS="google-cloud/firebase-adminsdk.json" - NOTIFICATION_ICON_URL="https://fcm.hostbbq.net/logo.png" ports: - $HOST_PORT:$WEB_PORT links: - mariadb extra_hosts: - host.docker.internal:host-gateway restart: always mariadb: build: context: server/mysql image: monitoring-mariadb:latest ports: - 3306:3306 environment: - MARIADB_ROOT_PASSWORD=i4mGr00ti4mGr00t volumes: - db-dir:/var/lib/mysql restart: always volumes: db-dir: driver: local driver_opts: o: bind type: none device: $DB_DIR