-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
69 lines (63 loc) · 1.67 KB
/
docker-compose.dev.yml
File metadata and controls
69 lines (63 loc) · 1.67 KB
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
64
65
66
67
68
69
version: '3.8'
# Development Docker Compose Configuration
# Use: docker-compose -f docker-compose.dev.yml up
services:
# Backend Development Server
backend-dev:
build:
context: .
dockerfile: Dockerfile.dev
target: backend-dev
container_name: gxq-backend-dev
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- PORT=3000
- HOST=0.0.0.0
- DEPLOYMENT_PLATFORM=docker-dev
# Load from .env file
- SOLANA_RPC_URL=${SOLANA_RPC_URL}
- SOLANA_WS_URL=${SOLANA_WS_URL}
- WALLET_PRIVATE_KEY=${WALLET_PRIVATE_KEY}
- LOG_LEVEL=debug
volumes:
# Mount source code for hot reload
- ./src:/app/src
- ./lib:/app/lib
- ./api:/app/api
- ./data:/app/data
- ./logs:/app/logs
networks:
- gxq-dev-network
command: npm run dev:server
# Webapp Development Server
webapp-dev:
build:
context: ./webapp
dockerfile: Dockerfile.dev
container_name: gxq-webapp-dev
restart: unless-stopped
ports:
- "3001:3000"
environment:
- NODE_ENV=development
- NEXT_PUBLIC_RPC_URL=${NEXT_PUBLIC_RPC_URL:-${SOLANA_RPC_URL}}
- NEXT_PUBLIC_BACKEND_URL=http://backend-dev:3000
- NEXT_PUBLIC_WS_URL=${NEXT_PUBLIC_WS_URL}
- WATCHPACK_POLLING=true
volumes:
# Mount source for hot reload
- ./webapp/app:/app/app
- ./webapp/components:/app/components
- ./webapp/lib:/app/lib
- ./webapp/public:/app/public
depends_on:
- backend-dev
networks:
- gxq-dev-network
command: npm run dev
networks:
gxq-dev-network:
driver: bridge