Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (60 loc) · 1.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (60 loc) · 1.56 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
services:
postgres:
image: postgres:15-alpine
container_name: searchops-postgres
environment:
POSTGRES_DB: searchops_dev
POSTGRES_USER: searchops
POSTGRES_PASSWORD: searchops
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U searchops -d searchops_dev"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: searchops-api
depends_on:
postgres:
condition: service_healthy
environment:
PORT: 5000
NODE_ENV: ${NODE_ENV:-production}
ENABLE_INCIDENT_SIMULATION: ${ENABLE_INCIDENT_SIMULATION:-false}
DATABASE_URL: postgresql://searchops:searchops@postgres:5432/searchops_dev
ports:
- "5000:5000"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
BACKEND_API_URL: http://backend:5000
FRONTEND_SITE_URL: http://localhost:3000
container_name: searchops-frontend
depends_on:
- backend
environment:
BACKEND_API_URL: http://backend:5000
FRONTEND_SITE_URL: http://localhost:3000
NEXT_TELEMETRY_DISABLED: 1
ports:
- "3000:3000"
frontend-e2e:
build:
context: ./frontend
dockerfile: Dockerfile.e2e
container_name: searchops-frontend-e2e
depends_on:
- frontend
environment:
PLAYWRIGHT_BASE_URL: http://frontend:3000
NEXT_TELEMETRY_DISABLED: 1
volumes:
postgres_data: