forked from zuohuadong/elygate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (80 loc) · 2.24 KB
/
Copy pathdocker-compose.yml
File metadata and controls
86 lines (80 loc) · 2.24 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3.8"
services:
# ──── PostgreSQL with pgvector + pg_cron + pg_bigm ────────
db:
build:
context: .
dockerfile: docker/Dockerfile.postgres
container_name: elygate-db
restart: always
privileged: true
environment:
POSTGRES_USER: dbuser_dba
POSTGRES_PASSWORD: ${ELYGATE_DB_PASSWORD:-elygate_change_me}
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- pgdata:/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U dbuser_dba -d postgres" ]
interval: 10s
timeout: 5s
retries: 10
# ──── Gateway (Bun + Elysia) ──────────────────────────────
gateway:
build:
context: .
dockerfile: docker/Dockerfile.gateway
container_name: elygate-gateway
restart: always
env_file: .env
environment:
DATABASE_URL: postgresql://dbuser_dba:${ELYGATE_DB_PASSWORD:-elygate_change_me}@db:5432/postgres
ports:
- "3003:3000"
depends_on:
db:
condition: service_healthy
networks:
- elygate-network
# ──── Web Admin Panel (Svelte + Bun) ─────────────────────
web:
build:
context: .
dockerfile: docker/Dockerfile.web
container_name: elygate-web
restart: always
env_file: .env
environment:
VITE_API_BASE_URL: http://gateway:3000
ports:
- "3001:3001"
depends_on:
- gateway
networks:
- elygate-network
# ──── Enterprise Portal (SvelteKit + Bun) ────────────────
portal:
build:
context: .
dockerfile: apps/portal/Dockerfile
container_name: elygate-portal
restart: always
environment:
DATABASE_URL: postgresql://dbuser_dba:${ELYGATE_DB_PASSWORD:-elygate_change_me}@db:5432/postgres
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
gateway:
condition: service_started
networks:
- elygate-network
networks:
elygate-network:
driver: bridge
volumes:
pgdata: