server.docker-compose.yml 838 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. version: '3.8'
  2. services:
  3. server:
  4. build:
  5. context: .
  6. dockerfile: server.dockerfile
  7. image: monitoring-server:latest
  8. env_file:
  9. - .env
  10. environment:
  11. - GOOGLE_APPLICATION_CREDENTIALS=google-cloud/firebase-adminsdk.json
  12. - NOTIFICATION_ICON_URL=https://fcm.hostbbq.net/logo.png
  13. ports:
  14. - $HOST_PORT:$WEB_PORT
  15. links:
  16. - mariadb
  17. extra_hosts:
  18. - host.docker.internal:host-gateway
  19. restart: always
  20. mariadb:
  21. build:
  22. context: server/mysql
  23. image: monitoring-mariadb:latest
  24. ports:
  25. - 3306:3306
  26. environment:
  27. - TZ=Europe/Berlin
  28. - MARIADB_ROOT_PASSWORD=i4mGr00ti4mGr00t
  29. volumes:
  30. - db-dir:/var/lib/mysql
  31. restart: always
  32. volumes:
  33. db-dir:
  34. driver: local
  35. driver_opts:
  36. o: bind
  37. type: none
  38. device: $DB_DIR