-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
68 lines (63 loc) · 3.06 KB
/
docker-compose.prod.yml
File metadata and controls
68 lines (63 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Sub-10b — Production compose stack.
# Boots the 5 prod images (4 apps + migrator) against externally-resident
# infrastructure (SQL, Redis, Keycloak on the Windows host). The migrator
# service runs to completion before APIs start.
#
# Two ways this file is used:
# - Direct `docker compose -f docker-compose.prod.yml up`
# (e.g. deploy-smoke CI workflow). depends_on: service_completed_successfully
# orchestrates ordering. Fallback defaults below let it run with no .env.
# - `deploy.ps1`-orchestrated path on the Windows host (production).
# Overlays docker-compose.prod.deploy.yml (strict-env, no defaults) and
# runs the migrator explicitly via `docker compose run --rm --no-deps`,
# then brings up apps with `--no-deps` to bypass the now-empty dependency.
services:
migrator:
image: ghcr.io/${CCE_REGISTRY_OWNER:-moenergy-cce}/cce-migrator:${CCE_IMAGE_TAG:-latest}
env_file: ${CCE_ENV_FILE}
command: ["--migrate", "--seed-reference"]
restart: "no"
api-external:
image: ghcr.io/${CCE_REGISTRY_OWNER:-moenergy-cce}/cce-api-external:${CCE_IMAGE_TAG:-latest}
env_file: ${CCE_ENV_FILE}
environment:
ASPNETCORE_ENVIRONMENT: Production
ASSISTANT_PROVIDER: ${ASSISTANT_PROVIDER:-stub}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
SENTRY_DSN: ${SENTRY_DSN:-}
LOG_LEVEL: ${LOG_LEVEL:-Information}
Keycloak__Authority: ${KEYCLOAK_AUTHORITY:-http://host.docker.internal:8080/realms/cce}
Keycloak__Audience: ${KEYCLOAK_AUDIENCE:-cce-api}
Keycloak__RequireHttpsMetadata: ${KEYCLOAK_REQUIRE_HTTPS:-false}
Infrastructure__SqlConnectionString: ${INFRA_SQL:-Server=host.docker.internal,1433;Database=CCE;User Id=sa;Password=Strong!Passw0rd;TrustServerCertificate=True;}
Infrastructure__RedisConnectionString: ${INFRA_REDIS:-host.docker.internal:6379}
depends_on:
migrator:
condition: service_completed_successfully
ports:
- "5001:8080"
api-internal:
image: ghcr.io/${CCE_REGISTRY_OWNER:-moenergy-cce}/cce-api-internal:${CCE_IMAGE_TAG:-latest}
env_file: ${CCE_ENV_FILE}
environment:
ASPNETCORE_ENVIRONMENT: Production
SENTRY_DSN: ${SENTRY_DSN:-}
LOG_LEVEL: ${LOG_LEVEL:-Information}
Keycloak__Authority: ${KEYCLOAK_AUTHORITY:-http://host.docker.internal:8080/realms/cce}
Keycloak__Audience: ${KEYCLOAK_AUDIENCE:-cce-api}
Keycloak__RequireHttpsMetadata: ${KEYCLOAK_REQUIRE_HTTPS:-false}
Infrastructure__SqlConnectionString: ${INFRA_SQL:-Server=host.docker.internal,1433;Database=CCE;User Id=sa;Password=Strong!Passw0rd;TrustServerCertificate=True;}
Infrastructure__RedisConnectionString: ${INFRA_REDIS:-host.docker.internal:6379}
depends_on:
migrator:
condition: service_completed_successfully
ports:
- "5002:8080"
web-portal:
image: ghcr.io/${CCE_REGISTRY_OWNER:-moenergy-cce}/cce-web-portal:${CCE_IMAGE_TAG:-latest}
ports:
- "4200:8080"
admin-cms:
image: ghcr.io/${CCE_REGISTRY_OWNER:-moenergy-cce}/cce-admin-cms:${CCE_IMAGE_TAG:-latest}
ports:
- "4201:8080"