forked from diyahir/lightning-evm-bridge-dapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 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
52
53
54
55
56
57
version: '3.8'
services:
webapp:
build:
context: .
dockerfile: packages/nextjs/Dockerfile
image: botanix-ln-webapp:latest
ports:
- '3000:3000'
depends_on:
- server
restart: always
networks:
- bridge-network
server:
platform: linux/amd64
build:
context: .
dockerfile: packages/server/Dockerfile
image: botanix-ln-server:latest
ports:
- '3003:3003' # WS server
- '3002:3002' # HTTP server
entrypoint: sh -c 'yarn prisma db push --schema=src/prisma/schema.prisma && yarn start'
environment:
- PORT=3003
- HTTP_PORT=3002
- PRISMA_CLI_QUERY_ENGINE_TYPE=binary
- PRISMA_CLIENT_ENGINE_TYPE=binary
- NODE_ENV=production
- DATABASE_URL=postgresql://postgres:postgres@prisma:5432/evmdapp
- LND_SOCKET=polar-n1-alice:10009 # Use service name for internal network
restart: always
networks:
- bridge-network
prisma:
image: postgres:14.1-alpine
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRED_DB=evmdapp
restart: always
networks:
- bridge-network
volumes:
db:
driver: local
networks:
bridge-network:
external: true