-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.e2e.yml
More file actions
97 lines (90 loc) · 2.2 KB
/
docker-compose.e2e.yml
File metadata and controls
97 lines (90 loc) · 2.2 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
87
88
89
90
91
92
93
94
95
96
97
services:
nginx:
image: nginx:latest
ports:
- "18080:80"
volumes:
- ./nginx.e2e.conf:/etc/nginx/nginx.conf:ro
depends_on:
backend-api:
condition: service_healthy
frontend-marketing:
condition: service_started
frontend-dashboard:
condition: service_started
admin-dashboard:
condition: service_started
frontend-marketing:
build:
context: .
dockerfile: frontend-marketing/Dockerfile
environment:
- PORT=3000
- NODE_ENV=production
- PLATFORM_MODE=${PLATFORM_MODE:-selfhosted}
env_file:
- ${NORA_ENV_FILE:-.env}
frontend-dashboard:
build:
context: .
dockerfile: frontend-dashboard/Dockerfile
environment:
- PORT=3000
- NODE_ENV=production
admin-dashboard:
build:
context: .
dockerfile: admin-dashboard/Dockerfile
environment:
- PORT=3000
- NODE_ENV=production
backend-api:
build:
context: .
dockerfile: backend-api/Dockerfile
volumes:
- ./workers:/workers:ro
- ./agent-runtime:/agent-runtime:ro
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- ${NORA_ENV_FILE:-.env}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test:
[
"CMD-SHELL",
'node -e "require(''http'').get(''http://localhost:4000/health'', r => process.exit(r.statusCode === 200 ? 0 : 1)).on(''error'', () => process.exit(1))"',
]
interval: 15s
timeout: 5s
retries: 3
start_period: 30s
postgres:
image: postgres:15
restart: always
environment:
POSTGRES_USER: platform
POSTGRES_PASSWORD: platform
POSTGRES_DB: platform
volumes:
- pgdata:/var/lib/postgresql/data
- ./backend-api/db_schema.sql:/docker-entrypoint-initdb.d/01_schema.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U platform"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
pgdata: