-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (62 loc) · 1.31 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "3"
services:
db:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5433:5432"
volumes:
- db:/var/lib/postgresql/data
redis:
image: redis:latest
ports:
- 6379:6379
volumes:
- redis:/data
api:
container_name: bayc_tracker_be
build:
context: ./be
target: development
image: bayc_tracker_be
depends_on:
- db
- redis
ports:
- 3000:3000
environment:
PORT: 3000
NODE_ENV: development
DATABASE_HOST: db
DB_PORT: 5432
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
DATABASE_NAME: postgres
DATABASE_SYNC: "true"
REDIS_HOST: redis
REDIS_PORT: 6379
RPC: https://eth-mainnet.g.alchemy.com/v2/aBAovzIe_e9gpWIZqMNG5mzZLWdyPtbq
ALCHEMY_KEY: aBAovzIe_e9gpWIZqMNG5mzZLWdyPtbq
CMC_KEY: 588c5c86-fb2d-430e-affa-1788379aeb47
BLOCK_CONFIRM: 7
links:
- db
- redis
# web:
# container_name: bayc_tracker_web
# build:
# context: ./fe
# target: development
# ports:
# - 5173:5173
# environment:
# VITE_API_URL: be:3000
volumes:
db:
driver: local
redis:
driver: local