-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 897 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
version: '3.8'
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- WATCHPACK_POLLING=true
- WDS_SOCKET_PORT=0
volumes:
- ./frontend:/app
- /app/node_modules
networks:
- faucet-network
depends_on:
- backend
stdin_open: true
tty: true
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "29000:29000" # Expose backend port to host
environment:
- PORT=29000
- RPC_URL=http://host.docker.internal:32002
- PRIVATE_KEY=${PRIVATE_KEY}
- HCAPTCHA_SECRET_KEY=${HCAPTCHA_SECRET_KEY}
volumes:
- ./backend:/app
- /app/node_modules
networks:
- faucet-network
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
faucet-network:
driver: bridge