|
| 1 | +# Important changes here due to new ServiceControl development should also be made in the following locations: |
| 2 | +# * /src/container-integration-test |
| 3 | +# * https://github.com/Particular/PlatformContainerExamples/tree/main/docker-compose |
| 4 | +# * https://github.com/ParticularLabs/AwsLoanBrokerSample/blob/main/docker-compose.yml |
| 5 | + |
| 6 | +name: servicecontrol-pr |
| 7 | + |
| 8 | +services: |
| 9 | + servicecontrol: |
| 10 | + image: ghcr.io/particular/servicecontrol:${SERVICECONTROL_TAG} |
| 11 | + env_file: .env |
| 12 | + ports: |
| 13 | + - "33333:33333" |
| 14 | + environment: |
| 15 | + RAVENDB_CONNECTIONSTRING: http://servicecontrol-db:8080 |
| 16 | + REMOTEINSTANCES: '[{"api_uri":"http://servicecontrol-audit:44444/api"}]' |
| 17 | + command: --setup-and-run |
| 18 | + restart: unless-stopped |
| 19 | + depends_on: |
| 20 | + servicecontrol-db: |
| 21 | + condition: service_healthy |
| 22 | + rabbitmq: |
| 23 | + condition: service_healthy |
| 24 | + |
| 25 | + servicecontrol-db: |
| 26 | + image: ghcr.io/particular/servicecontrol-ravendb:${SERVICECONTROL_TAG} |
| 27 | + ports: |
| 28 | + - "8080:8080" |
| 29 | + volumes: |
| 30 | + - db-config:/etc/ravendb |
| 31 | + - db-data:/var/lib/ravendb/data |
| 32 | + |
| 33 | + servicecontrol-audit: |
| 34 | + image: ghcr.io/particular/servicecontrol-audit:${SERVICECONTROL_TAG} |
| 35 | + env_file: .env |
| 36 | + ports: |
| 37 | + - "44444:44444" |
| 38 | + environment: |
| 39 | + RAVENDB_CONNECTIONSTRING: http://servicecontrol-db:8080 |
| 40 | + command: --setup-and-run |
| 41 | + restart: unless-stopped |
| 42 | + depends_on: |
| 43 | + servicecontrol-db: |
| 44 | + condition: service_healthy |
| 45 | + rabbitmq: |
| 46 | + condition: service_healthy |
| 47 | + |
| 48 | + servicecontrol-monitoring: |
| 49 | + image: ghcr.io/particular/servicecontrol-monitoring:${SERVICECONTROL_TAG} |
| 50 | + env_file: .env |
| 51 | + restart: unless-stopped |
| 52 | + command: --setup-and-run |
| 53 | + ports: |
| 54 | + - "33633:33633" |
| 55 | + depends_on: |
| 56 | + rabbitmq: |
| 57 | + condition: service_healthy |
| 58 | + |
| 59 | + servicepulse: |
| 60 | + image: particular/servicepulse:${SERVICEPULSE_TAG} |
| 61 | + ports: |
| 62 | + - "9090:9090" |
| 63 | + environment: |
| 64 | + SERVICECONTROL_URL: http://servicecontrol:33333 |
| 65 | + MONITORING_URL: http://servicecontrol-monitoring:33633 |
| 66 | + restart: unless-stopped |
| 67 | + depends_on: |
| 68 | + servicecontrol: |
| 69 | + condition: service_healthy |
| 70 | + servicecontrol-monitoring: |
| 71 | + condition: service_healthy |
| 72 | + rabbitmq: |
| 73 | + condition: service_healthy |
| 74 | + |
| 75 | + rabbitmq: |
| 76 | + image: rabbitmq:3-management |
| 77 | + ports: |
| 78 | + - "5672:5672" |
| 79 | + - "15672:15672" |
| 80 | + restart: unless-stopped |
| 81 | + healthcheck: |
| 82 | + test: rabbitmq-diagnostics check_port_connectivity |
| 83 | + interval: 30s |
| 84 | + timeout: 10s |
| 85 | + start_period: 30s |
| 86 | + start_interval: 10s |
| 87 | + retries: 3 |
| 88 | + volumes: |
| 89 | + - rabbitmq-data:/var/lib/rabbitmq |
| 90 | + |
| 91 | +volumes: |
| 92 | + rabbitmq-data: |
| 93 | + db-config: |
| 94 | + db-data: |
0 commit comments