-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.engine.yml
More file actions
53 lines (48 loc) · 1.26 KB
/
docker-compose.engine.yml
File metadata and controls
53 lines (48 loc) · 1.26 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
version: '3.8'
services:
postgres:
image: postgres:14
container_name: engine-postgres
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: engine
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7.2.4
container_name: engine-redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
engine:
image: thirdweb/engine:latest
container_name: thirdweb-engine
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "3005:3005"
environment:
ENCRYPTION_PASSWORD: ${ENGINE_ENCRYPTION_PASSWORD:-change-me-to-secure-password}
THIRDWEB_API_SECRET_KEY: ${THIRDWEB_SECRET_KEY}
ADMIN_WALLET_ADDRESS: ${BACKEND_WALLET_ADDRESS}
POSTGRES_CONNECTION_URL: postgresql://postgres:postgres@postgres:5432/engine?sslmode=disable
REDIS_URL: redis://redis:6379/0
ENABLE_HTTPS: "false"
restart: unless-stopped
volumes:
postgres_data: