56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
---
|
|
# docker-compose file for owncloud server
|
|
|
|
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml metrics
|
|
# DOCKER_HOST=dkhost:2376 docker stack ps metrics
|
|
|
|
version: '3.4'
|
|
services:
|
|
|
|
prometheus:
|
|
image: prom/prometheus
|
|
ports:
|
|
- 9090:9090
|
|
# volumes:
|
|
# - /opt/shared/nextcloud/data:/var/www/html/data
|
|
logging:
|
|
driver: fluentd
|
|
options:
|
|
fluentd-address: "logs.xai-corp.net:24224"
|
|
fluentd-async-connect: 'true'
|
|
tag: postgres
|
|
networks:
|
|
- ingress
|
|
- prod
|
|
|
|
graphana:
|
|
image: grafana/grafana
|
|
ports:
|
|
- 3001:3000
|
|
environment:
|
|
GF_SECURITY_ADMIN_PASSWORD: sakas
|
|
# volumes:
|
|
# - /opt/shared/nextcloud/data:/var/www/html/data
|
|
networks:
|
|
- ingress
|
|
|
|
postgres_exported:
|
|
image: wrouesnel/postgres_exporter
|
|
environment:
|
|
DATA_SOURCE_NAME: "postgresql://xaicorp_admin:snqioxni1sw@tasks.postgres:5432/?sslmode=disable"
|
|
networks:
|
|
- ingress
|
|
- prod
|
|
|
|
|
|
networks:
|
|
default:
|
|
external:
|
|
name: ingress
|
|
ingress:
|
|
external:
|
|
name: ingress
|
|
prod:
|
|
external:
|
|
name: prod
|