forked from Gentleman-Programming/engram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.beta.yml
More file actions
53 lines (50 loc) · 1.61 KB
/
Copy pathdocker-compose.beta.yml
File metadata and controls
53 lines (50 loc) · 1.61 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
# Engram Beta — Phases 2 + 3 + 4 community testing
#
# Spins up an ISOLATED cloud (postgres + engram cloud serve) on non-default
# ports + container names + volume so your production engram cloud setup
# is left completely untouched.
#
# Usage:
# docker compose -f docker-compose.beta.yml up -d
# (build local binary: go build -o ./engram-beta ./cmd/engram)
# (point client at beta: see docs/BETA_TESTING.md)
#
# Cleanup:
# docker compose -f docker-compose.beta.yml down -v
services:
postgres-beta:
image: postgres:16-alpine
container_name: engram-beta-postgres
environment:
POSTGRES_USER: engram_beta
POSTGRES_PASSWORD: beta_test_pw
POSTGRES_DB: engram_beta
ports:
- "127.0.0.1:25432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U engram_beta -d engram_beta"]
interval: 5s
timeout: 3s
retries: 10
volumes:
- engram-beta-pg:/var/lib/postgresql/data
cloud-beta:
build:
context: .
dockerfile: docker/cloud/Dockerfile
container_name: engram-beta-cloud
depends_on:
postgres-beta:
condition: service_healthy
environment:
ENGRAM_DATABASE_URL: postgres://engram_beta:beta_test_pw@postgres-beta:5432/engram_beta?sslmode=disable
ENGRAM_JWT_SECRET: beta-jwt-secret-local-only-CHANGE-ME-32chars
ENGRAM_CLOUD_TOKEN: beta-token-CHANGE-ME-please-32chars
ENGRAM_CLOUD_ALLOWED_PROJECTS: beta-test,beta-conflicts,beta-team-a,beta-team-b
ENGRAM_CLOUD_HOST: 0.0.0.0
ENGRAM_PORT: "28080"
ports:
- "127.0.0.1:28080:28080"
command: ["cloud", "serve"]
volumes:
engram-beta-pg: