-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
45 lines (42 loc) · 1021 Bytes
/
docker-compose.yml
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
services:
postgres:
image: postgres:latest
volumes:
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
networks:
- default
deploy:
restart_policy:
condition: on-failure
redis:
image: redis:7.2.4
ports:
- "6379:6379"
depends_on:
- postgres
deploy:
restart_policy:
condition: on-failure
thirdweb:
image: thirdweb/engine:v2.1.21 # always use the versioned image instead of latest, see readme for more info
environment:
- POSTGRES_CONNECTION_URL=postgresql://postgres:[email protected]:5432/postgres?sslmode=disable&connection_limit=10
- REDIS_URL=redis://host.docker.internal:6379
env_file:
- ./.env
ports:
- "3005:3005"
depends_on:
- postgres
- redis
deploy:
restart_policy:
condition: on-failure
volumes:
db_data: