Created
December 7, 2022 10:55
-
-
Save oprietop/5ac3c00107215f3e6ab1f158ec0b1d0a to your computer and use it in GitHub Desktop.
meta compose file for various services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
influxdb: | |
image: influxdb:1.8 | |
ports: | |
- 8086:8086 | |
volumes: | |
- ./influxdb/data:/var/lib/influxdb | |
environment: | |
TZ: Europe/Madrid | |
influxdb2: | |
image: influxdb:latest | |
user: 1000:1000 | |
ports: | |
- 8087:8086 | |
volumes: | |
- ./influxdb2/data:/var/lib/influxdb2 | |
environment: | |
INFLUXD_REPORTING_DISABLED: true | |
DOCKER_INFLUXDB_INIT_MODE: setup | |
DOCKER_INFLUXDB_INIT_USERNAME: admin | |
DOCKER_INFLUXDB_INIT_PASSWORD: administrator | |
DOCKER_INFLUXDB_INIT_ORG: myorg | |
DOCKER_INFLUXDB_INIT_BUCKET: default | |
grafana: | |
image: grafana/grafana:latest | |
ports: | |
- 3000:3000 | |
volumes: | |
- ./grafana:/var/lib/grafana | |
- ./grafana:/etc/grafana/provisioning | |
#depends_on: | |
# - influxdb | |
environment: | |
TZ: Europe/Madrid | |
GF_SECURITY_ADMIN_USER: admin | |
GF_SECURITY_ADMIN_PASSWORD: administrator | |
mailhog: | |
image: mailhog/mailhog | |
# logging: | |
# driver: 'none' # disable saving logs | |
environment: | |
TZ: Europe/Madrid | |
ports: | |
- 1025:1025 # smtp server | |
- 8025:8025 # web ui | |
mongo: | |
image: mongo:latest | |
restart: always | |
ports: | |
- 27017:27017 | |
volumes: | |
- ./mongo:/data | |
environment: | |
TZ: Europe/Madrid | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: pass | |
mongo-express: | |
image: mongo-express:latest | |
restart: always | |
ports: | |
- 8081:8081 | |
environment: | |
TZ: Europe/Madrid | |
ME_CONFIG_MONGODB_URL: mongodb://root:pass@mongo:27017/ | |
python: | |
image: python:slim | |
environment: | |
TZ: Europe/Madrid | |
volumes: | |
- .:/mnt | |
working_dir: /mnt | |
depends_on: | |
- mongo | |
entrypoint: | |
- /bin/sh | |
- -c | |
- | | |
sh -c "tail -f /dev/null" | |
go: | |
image: golang:alpine | |
volumes: | |
- .:/mnt | |
working_dir: /mnt | |
environment: | |
TZ: Europe/Madrid | |
entrypoint: | |
- /bin/sh | |
- -c | |
- | | |
sh -c "tail -f /dev/null" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment