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 volumes: - 'data-dir:/home/node/monitoring/data' links: - mariadb 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: data-dir: driver: local driver_opts: o: bind type: none device: $DATA_VOLUME_DIR db-dir: driver: local driver_opts: o: bind type: none device: $DB_VOLUME_DIR