-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (105 loc) · 3.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
110 lines (105 loc) · 3.27 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
98
99
100
101
102
103
104
105
106
107
108
109
110
services:
db:
image: postgres:16-alpine
container_name: echostate-db
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-echostate}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-echostate}
POSTGRES_DB: ${POSTGRES_DB:-echostate}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-echostate} -d ${POSTGRES_DB:-echostate}"]
interval: 5s
timeout: 5s
retries: 5
browser:
image: browserless/chrome:latest
container_name: echostate-browser
restart: unless-stopped
environment:
PORT: 3000
CONNECTION_TIMEOUT: 30000
MAX_CONCURRENT_SESSIONS: 5
ports:
- "${BROWSER_PORT:-3000}:3000"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000/pressure"]
interval: 5s
timeout: 5s
retries: 5
neo4j:
image: neo4j:5
container_name: echostate-neo4j
restart: unless-stopped
environment:
NEO4J_AUTH: ${NEO4J_USER:-neo4j}/${NEO4J_PASSWORD:-echostate123}
ports:
- "${NEO4J_PORT:-7687}:7687"
- "7474:7474"
volumes:
- neo4j_data:/data
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:7474/"]
interval: 10s
timeout: 5s
retries: 5
api:
image: ${ECHOSTATE_API_IMAGE:-ghcr.io/notfixingit3/echostate:beta}
env_file:
- .env
container_name: echostate-api
restart: unless-stopped
environment:
ECHOSTATE_ENV: ${ECHOSTATE_ENV:-development}
ECHOSTATE_BRANCH: ${ECHOSTATE_BRANCH:-dev}
ECHOSTATE_GITHUB_REPO: ${ECHOSTATE_GITHUB_REPO:-notfixingit3/echostate}
ECHOSTATE_UPDATE_CHECK: ${ECHOSTATE_UPDATE_CHECK:-true}
ECHOSTATE_PORT: ${ECHOSTATE_PORT:-8080}
FRONTEND_URL: http://localhost:3001
POSTGRES_HOST: db
POSTGRES_PORT: 5432
POSTGRES_USER: ${POSTGRES_USER:-echostate}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-echostate}
POSTGRES_DB: ${POSTGRES_DB:-echostate}
DATABASE_URL: postgres://${POSTGRES_USER:-echostate}:${POSTGRES_PASSWORD:-echostate}@db:5432/${POSTGRES_DB:-echostate}?sslmode=disable
BROWSER_WS_URL: ws://browser:3000/
NEO4J_URI: ${NEO4J_URI:-bolt://neo4j:7687}
NEO4J_USER: ${NEO4J_USER:-neo4j}
NEO4J_PASSWORD: ${NEO4J_PASSWORD:-echostate123}
ECHOSTATE_AUTH_PEPPER: ${ECHOSTATE_AUTH_PEPPER:-}
ECHOSTATE_BREAK_GLASS_SECRET: ${ECHOSTATE_BREAK_GLASS_SECRET:-}
ports:
- "${ECHOSTATE_PORT:-8080}:8080"
depends_on:
db:
condition: service_healthy
browser:
condition: service_healthy
neo4j:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:8080/ready"]
interval: 5s
timeout: 5s
retries: 5
frontend:
image: ${ECHOSTATE_FRONTEND_IMAGE:-ghcr.io/notfixingit3/echostate-frontend:beta}
container_name: echostate-frontend
restart: unless-stopped
ports:
- "${FRONTEND_PORT:-3001}:80"
depends_on:
api:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--spider", "http://127.0.0.1/"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
neo4j_data: