|
| 1 | +name: codezero |
| 2 | + |
| 3 | +services: |
| 4 | + config-generator: |
| 5 | + image: ${IMAGE_REGISTRY}/config-generator:${IMAGE_TAG} |
| 6 | + env_file: |
| 7 | + - .env |
| 8 | + volumes: |
| 9 | + - generated-configs:/generated-configs |
| 10 | + restart: "no" |
| 11 | + profiles: |
| 12 | + - ide |
| 13 | + |
| 14 | + postgres: |
| 15 | + image: postgres:16.1 |
| 16 | + environment: |
| 17 | + - POSTGRES_DB=${POSTGRES_DB} |
| 18 | + - POSTGRES_USER=${POSTGRES_USER} |
| 19 | + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} |
| 20 | + volumes: |
| 21 | + - postgres-data:/var/lib/postgresql/data |
| 22 | + healthcheck: |
| 23 | + test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}" ] |
| 24 | + interval: 10s |
| 25 | + timeout: 5s |
| 26 | + retries: 5 |
| 27 | + restart: unless-stopped |
| 28 | + profiles: |
| 29 | + - ide |
| 30 | + |
| 31 | + sagittarius-rails-web: |
| 32 | + image: ${IMAGE_REGISTRY}/sagittarius:${IMAGE_TAG}-${IMAGE_EDITION} |
| 33 | + depends_on: |
| 34 | + config-generator: |
| 35 | + condition: service_completed_successfully |
| 36 | + postgres: |
| 37 | + condition: service_healthy |
| 38 | + environment: |
| 39 | + INITIAL_ROOT_PASSWORD: ${INITIAL_ROOT_PASSWORD} |
| 40 | + INITIAL_ROOT_MAIL: ${INITIAL_ROOT_MAIL} |
| 41 | + volumes: |
| 42 | + - generated-configs:/tmp/generated-configs:ro |
| 43 | + entrypoint: | |
| 44 | + sh -c " |
| 45 | + cp /tmp/generated-configs/sagittarius.sagittarius.yml config/sagittarius.yml |
| 46 | + exec bin/docker-entrypoint ./bin/rails server |
| 47 | + " |
| 48 | + restart: unless-stopped |
| 49 | + healthcheck: |
| 50 | + test: ["CMD-SHELL", "curl --fail http://localhost:3000/health/liveness"] |
| 51 | + interval: 10s |
| 52 | + timeout: 5s |
| 53 | + retries: 5 |
| 54 | + profiles: |
| 55 | + - ide |
| 56 | + |
| 57 | + sagittarius-rails-background: |
| 58 | + image: ${IMAGE_REGISTRY}/sagittarius:${IMAGE_TAG}-${IMAGE_EDITION} |
| 59 | + depends_on: |
| 60 | + sagittarius-rails-web: |
| 61 | + condition: service_healthy |
| 62 | + volumes: |
| 63 | + - generated-configs:/tmp/generated-configs:ro |
| 64 | + entrypoint: | |
| 65 | + sh -c " |
| 66 | + cp /tmp/generated-configs/sagittarius.sagittarius.yml config/sagittarius.yml |
| 67 | + exec bin/docker-entrypoint bundle exec good_job |
| 68 | + " |
| 69 | + restart: unless-stopped |
| 70 | + profiles: |
| 71 | + - ide |
| 72 | + |
| 73 | + sagittarius-grpc: |
| 74 | + image: ${IMAGE_REGISTRY}/sagittarius:${IMAGE_TAG}-${IMAGE_EDITION} |
| 75 | + depends_on: |
| 76 | + sagittarius-rails-web: |
| 77 | + condition: service_healthy |
| 78 | + volumes: |
| 79 | + - generated-configs:/tmp/generated-configs:ro |
| 80 | + entrypoint: | |
| 81 | + sh -c " |
| 82 | + cp /tmp/generated-configs/sagittarius.sagittarius.yml config/sagittarius.yml |
| 83 | + exec bin/docker-entrypoint ./bin/grpc_server |
| 84 | + " |
| 85 | + restart: unless-stopped |
| 86 | + profiles: |
| 87 | + - ide |
| 88 | + |
| 89 | + sculptor: |
| 90 | + image: ${IMAGE_REGISTRY}/sculptor:${IMAGE_TAG}-${IMAGE_EDITION} |
| 91 | + restart: unless-stopped |
| 92 | + profiles: |
| 93 | + - ide |
| 94 | + |
| 95 | + nginx: |
| 96 | + image: nginx:1.29.5-alpine-slim |
| 97 | + depends_on: |
| 98 | + config-generator: |
| 99 | + condition: service_completed_successfully |
| 100 | + sagittarius-rails-web: |
| 101 | + condition: service_started |
| 102 | + sagittarius-grpc: |
| 103 | + condition: service_started |
| 104 | + sculptor: |
| 105 | + condition: service_started |
| 106 | + volumes: |
| 107 | + - generated-configs:/tmp/generated-configs:ro |
| 108 | + - ./certs:/etc/nginx/certs:ro |
| 109 | + entrypoint: | |
| 110 | + sh -c " |
| 111 | + cp /tmp/generated-configs/nginx.default.conf /etc/nginx/conf.d/default.conf |
| 112 | + nginx -t |
| 113 | + exec nginx -g 'daemon off;' |
| 114 | + " |
| 115 | + ports: |
| 116 | + - "${HTTP_PORT}:80" |
| 117 | + - "${HTTPS_PORT}:443" |
| 118 | + restart: unless-stopped |
| 119 | + profiles: |
| 120 | + - ide |
| 121 | + |
| 122 | + nats: |
| 123 | + image: nats:2.11.9 |
| 124 | + command: |
| 125 | + - -js |
| 126 | + profiles: |
| 127 | + - runtime |
| 128 | + |
| 129 | + aquila: |
| 130 | + depends_on: |
| 131 | + - nats |
| 132 | + image: ${IMAGE_REGISTRY}/aquila:${IMAGE_TAG} |
| 133 | + environment: |
| 134 | + MODE: dynamic |
| 135 | + NATS_URL: nats://nats:4222 |
| 136 | + NATS_BUCKET: 'flow_store' |
| 137 | + GRPC_HOST: 0.0.0.0 |
| 138 | + SAGITTARIUS_URL: "${AQUILA_SAGITTARIUS_URL}" |
| 139 | + RUNTIME_TOKEN: "${AQUILA_SAGITTARIUS_TOKEN}" |
| 140 | + profiles: |
| 141 | + - runtime |
| 142 | + |
| 143 | + taurus: |
| 144 | + depends_on: |
| 145 | + - nats |
| 146 | + - aquila |
| 147 | + image: ${IMAGE_REGISTRY}/taurus:${IMAGE_TAG} |
| 148 | + environment: |
| 149 | + MODE: dynamic |
| 150 | + AQUILA_URL: 'http://aquila:8081' |
| 151 | + NATS_URL: nats://nats:4222 |
| 152 | + DEFINITION_PATH: '/definitions' |
| 153 | + profiles: |
| 154 | + - runtime |
| 155 | + |
| 156 | + draco-rest: |
| 157 | + depends_on: |
| 158 | + - nats |
| 159 | + image: ${IMAGE_REGISTRY}/draco:${IMAGE_TAG}-rest |
| 160 | + environment: |
| 161 | + MODE: dynamic |
| 162 | + AQUILA_URL: 'http://aquila:8081' |
| 163 | + NATS_URL: nats://nats:4222 |
| 164 | + NATS_BUCKET: 'flow_store' |
| 165 | + DEFINITION_PATH: '/definitions' |
| 166 | + HTTP_SERVER_PORT: 8084 |
| 167 | + HTTP_SERVER_HOST: "0.0.0.0" |
| 168 | + ports: |
| 169 | + - "${DRACO_REST_PORT}:8084" |
| 170 | + profiles: |
| 171 | + - runtime |
| 172 | + |
| 173 | + draco-cron: |
| 174 | + depends_on: |
| 175 | + - nats |
| 176 | + image: ${IMAGE_REGISTRY}/draco:${IMAGE_TAG}-cron |
| 177 | + environment: |
| 178 | + MODE: dynamic |
| 179 | + AQUILA_URL: 'http://aquila:8081' |
| 180 | + NATS_URL: nats://nats:4222 |
| 181 | + NATS_BUCKET: 'flow_store' |
| 182 | + DEFINITION_PATH: '/definitions' |
| 183 | + profiles: |
| 184 | + - runtime |
| 185 | + |
| 186 | +volumes: |
| 187 | + generated-configs: |
| 188 | + postgres-data: |
0 commit comments