services: trustpoint: build: context: . dockerfile: docker/trustpoint/Dockerfile image: trustpointproject/trustpoint:latest container_name: trustpoint ports: - "80:80" - "443:443" depends_on: - postgres environment: POSTGRES_DB: "trustpoint_db" DATABASE_USER: "admin" DATABASE_PASSWORD: "testing321" DATABASE_HOST: "postgres" DATABASE_PORT: "5432" trustpoint-worker: build: context: . dockerfile: docker/trustpoint/Dockerfile image: trustpointproject/trustpoint:latest depends_on: - postgres - trustpoint environment: POSTGRES_DB: "trustpoint_db" DATABASE_USER: "admin" DATABASE_PASSWORD: "testing321" DATABASE_HOST: "postgres" DATABASE_PORT: "5432" TRUSTPOINT_SERVICE_ROLE: "worker" restart: on-failure postgres: build: context: . dockerfile: docker/db/Dockerfile image: trustpointproject/postgres:latest container_name: postgres ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql environment: POSTGRES_USER: "admin" POSTGRES_PASSWORD: "testing321" POSTGRES_DB: "trustpoint_db" volumes: postgres_data: