version: "3.8" services: postgres: image: postgres:15-alpine container_name: hyper_pg restart: unless-stopped environment: POSTGRES_DB: hyper POSTGRES_USER: hyper POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes: - pg_data:/var/lib/postgresql/data - ./postgres/postgresql.conf:/etc/postgresql/postgresql.conf command: postgres -c config_file=/etc/postgresql/postgresql.conf ports: - "5432:5432" networks: - hyper_net data-collector: build: . container_name: hyper_data restart: unless-stopped depends_on: - postgres env_file: - .env.docker volumes: - ./_data:/app/_data - ./_logs:/app/_logs - ./secrets:/app/secrets - /volume1/docker/hyper/backups:/backups networks: - hyper_net volumes: pg_data: networks: hyper_net: driver: bridge