-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (46 loc) · 1.27 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
version: "3.2"
services:
postgresql:
image: postgres:9.6
container_name: postgresql
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: cache-engine
api:
container_name: cache-engine-api
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
API_PORT: 3000
DATABASE_URL: "postgresql://user:pass@postgresql:5432/cache-engine"
RPC_PROVIDER: "wss://testnet.bitgreen.org"
volumes:
- ./src:/app/src
command: bash -c "npx prisma db push && npm run app-dev"
fetch:
container_name: cache-engine-fetch
build:
context: .
dockerfile: Dockerfile
environment:
DATABASE_URL: "postgresql://user:pass@postgresql:5432/cache-engine"
RPC_PROVIDER: "wss://testnet.bitgreen.org"
volumes:
- ./src:/app/src
command: bash -c "npx prisma db push && npm run fetch-dev"
node:
container_name: cache-engine-node
build:
context: .
dockerfile: Dockerfile
environment:
DATABASE_URL: "postgresql://user:pass@postgresql:5432/cache-engine"
RPC_PROVIDER: "wss://testnet.bitgreen.org"
volumes:
- ./src:/app/src
command: bash -c "npx prisma db push && npm run node-dev"