You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.0 KiB
YAML

version: '3.8'
services:
influxdb:
image: influxdb:2.7
container_name: my_influxdb
ports:
- '8086:8086'
volumes:
- influx_data:/var/lib/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=admin123
- DOCKER_INFLUXDB_INIT_ORG=my-org
- DOCKER_INFLUXDB_INIT_BUCKET=my-bucket
- DOCKER_INFLUXDB_INIT_TOKEN=my-super-token
restart: unless-stopped
networks:
- app-network
backend-prod:
container_name: backend-prod
restart: always
env_file:
- ToreksBackend/.env
build:
context: .
target: prod
dockerfile: backend.Dockerfile
ports:
- "3000:3000"
networks:
- app-network
command: yarn start
# grafana:
# image: grafana/grafana:latest
# container_name: grafana
# ports:
# - "3005:3000"
# volumes:
# - grafana_data:/var/lib/grafana
networks:
app-network:
driver: bridge
volumes:
influx_data: