name: thlab-postgres ########## ===== NETWORKS ===== ########## networks: thlab_backend: name: thlab_backend ##### ########## ===== VOLUMES ===== ########## volumes: postgres_data: name: thlab_postgres driver: local ##### ########## ===== SERVICES ===== ########## services: thlab-postgres: image: postgres:17-alpine container_name: thlab-postgres restart: unless-stopped env_file: [.secrets/.env] volumes: - postgres_data:/var/lib/postgresql/data networks: thlab_backend: aliases: - postgres #####