services: db: image: "postgres:<%= @postgres_version %>" environment: - POSTGRES_PASSWORD=<%= @db_secrets['postgres_password'] %> ports: - "5432" volumes: - postgres_data:/var/lib/postgresql/data - /opt/sunet-cdn/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d - /opt/sunet-cdn/db/conf:/conf volumes: postgres_data: