| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 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
- networks:
- hostbbq-monitoring-vlan:
- ipv4_address: 172.20.5.2
- links:
- - mariadb
- extra_hosts:
- - host.docker.internal:host-gateway
- restart: always
- mariadb:
- build:
- context: server/mysql
- image: monitoring-mariadb:latest
- ports:
- - 172.20.5.3:3306:3306
- networks:
- hostbbq-monitoring-vlan:
- ipv4_address: 172.20.5.3
- environment:
- - TZ=Europe/Berlin
- - MARIADB_ROOT_PASSWORD=i4mGr00ti4mGr00t
- volumes:
- - db-dir:/var/lib/mysql
- restart: always
- networks:
- hostbbq-monitoring-vlan:
- external: true
- volumes:
- db-dir:
- driver: local
- driver_opts:
- o: bind
- type: none
- device: $DB_DIR
|