2023-11-16 17:48:29 +00:00
|
|
|
services:
|
2023-10-09 13:29:53 +00:00
|
|
|
server:
|
2023-10-27 17:47:17 +00:00
|
|
|
container_name: continuity-server
|
2023-11-12 14:27:59 +00:00
|
|
|
image: continuity:latest
|
|
|
|
restart: always
|
2023-10-27 17:47:17 +00:00
|
|
|
depends_on:
|
2023-11-19 19:20:16 +00:00
|
|
|
- db
|
2023-10-09 13:29:53 +00:00
|
|
|
environment:
|
2023-11-19 19:20:16 +00:00
|
|
|
- ENVIRONMENT=Development
|
|
|
|
- Testing:CreateAccountOnLogin=true
|
|
|
|
- DB:Host=db
|
|
|
|
- DB:Port=5432
|
|
|
|
- DB:Username=continuity
|
|
|
|
- DB:Password=continuity
|
|
|
|
- Game:Data:Path=/app/data/
|
2023-11-20 18:53:40 +00:00
|
|
|
- Tracing:Enabled=true
|
2023-11-28 14:32:41 +00:00
|
|
|
- OTLP:Tracing:Endpoint=http://otel-collector:4317
|
|
|
|
- OTLP:Logging:Endpoint=http://otel-collector:4317
|
|
|
|
- OTLP:Metrics:Endpoint=http://otel-collector:4317
|
2023-11-20 18:53:40 +00:00
|
|
|
- Zipkin:Endpoint=http://zipkin:9411/api/v2/spans
|
2023-10-09 13:29:53 +00:00
|
|
|
networks:
|
2023-11-19 19:20:16 +00:00
|
|
|
- continuity
|
2023-10-09 13:29:53 +00:00
|
|
|
ports:
|
2023-11-19 19:20:16 +00:00
|
|
|
- 10001:10001
|
2023-11-08 18:49:23 +00:00
|
|
|
volumes:
|
2023-11-19 19:20:16 +00:00
|
|
|
- type: bind
|
2023-11-28 14:32:41 +00:00
|
|
|
source: wk-data
|
2023-11-19 19:20:16 +00:00
|
|
|
target: /app/data
|
|
|
|
read_only: true
|
|
|
|
- type: bind
|
2023-11-28 14:32:41 +00:00
|
|
|
source: config
|
2023-11-19 19:20:16 +00:00
|
|
|
target: /app/config
|
|
|
|
read_only: true
|
2023-11-28 14:32:41 +00:00
|
|
|
mem_limit: 100m
|
2023-10-09 13:29:53 +00:00
|
|
|
|
|
|
|
db:
|
2023-10-27 17:47:17 +00:00
|
|
|
container_name: continuity-db
|
2023-11-14 19:48:17 +00:00
|
|
|
image: postgres:16.1-alpine
|
2023-11-12 14:27:59 +00:00
|
|
|
restart: always
|
2023-10-09 13:29:53 +00:00
|
|
|
environment:
|
2023-11-19 19:20:16 +00:00
|
|
|
- POSTGRES_USER=continuity
|
|
|
|
- POSTGRES_DB=continuity
|
|
|
|
- POSTGRES_PASSWORD=continuity
|
2023-10-09 13:29:53 +00:00
|
|
|
networks:
|
2023-11-19 19:20:16 +00:00
|
|
|
- continuity
|
2023-11-13 20:12:12 +00:00
|
|
|
ports:
|
2023-11-19 19:20:16 +00:00
|
|
|
- 5432:5432
|
2023-10-09 13:29:53 +00:00
|
|
|
volumes:
|
2023-11-19 19:20:16 +00:00
|
|
|
- db-data:/var/lib/postgresql/data
|
2023-10-27 17:47:17 +00:00
|
|
|
healthcheck:
|
2023-11-19 19:20:16 +00:00
|
|
|
test: [ CMD-SHELL, 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}' ]
|
2023-10-27 17:47:17 +00:00
|
|
|
interval: 10s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 3
|
2023-10-09 13:29:53 +00:00
|
|
|
|
2023-11-20 13:23:04 +00:00
|
|
|
jaeger:
|
|
|
|
container_name: continuity-jaeger
|
|
|
|
image: jaegertracing/all-in-one:1.51.0
|
|
|
|
restart: always
|
2023-11-28 14:32:41 +00:00
|
|
|
depends_on:
|
|
|
|
- server
|
|
|
|
- prometheus
|
2023-11-20 13:23:04 +00:00
|
|
|
networks:
|
|
|
|
- continuity
|
2023-11-22 09:16:16 +00:00
|
|
|
expose:
|
|
|
|
- 14250
|
|
|
|
- 14268
|
|
|
|
- 14269
|
2023-11-20 13:23:04 +00:00
|
|
|
ports:
|
|
|
|
- 16686:16686
|
|
|
|
environment:
|
|
|
|
- COLLECTOR_OTLP_ENABLED=true
|
2023-11-28 14:32:41 +00:00
|
|
|
- METRICS_STORAGE_TYPE=prometheus
|
|
|
|
- PROMETHEUS_SERVER_URL=http://prometheus:9090
|
|
|
|
- PROMETHEUS_QUERY_SUPPORT_SPANMETRICS_CONNECTOR=true
|
|
|
|
- PROMETHEUS_QUERY_NORMALIZE_CALLS=true
|
|
|
|
- PROMETHEUS_QUERY_NORMALIZE_DURATION=true
|
2023-11-20 13:23:04 +00:00
|
|
|
|
2023-11-20 18:53:40 +00:00
|
|
|
zipkin:
|
2023-11-22 09:16:16 +00:00
|
|
|
container_name: continuity-zipkin
|
|
|
|
image: openzipkin/zipkin:2.24.3
|
|
|
|
restart: always
|
2023-11-20 18:53:40 +00:00
|
|
|
ports:
|
|
|
|
- 9411:9411
|
|
|
|
networks:
|
|
|
|
- continuity
|
|
|
|
|
2023-10-09 13:29:53 +00:00
|
|
|
networks:
|
|
|
|
continuity:
|
2023-11-12 14:27:59 +00:00
|
|
|
|
2023-10-09 13:29:53 +00:00
|
|
|
volumes:
|
|
|
|
db-data:
|
2023-11-28 14:32:41 +00:00
|
|
|
server-logs:
|