-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
38 lines (35 loc) · 907 Bytes
/
docker-compose.yaml
File metadata and controls
38 lines (35 loc) · 907 Bytes
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
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
environment:
- PAYSTACK_SECRET_KEY=${PAYSTACK_SECRET_KEY}
- TREASURY_ADDRESS=${TREASURY_ADDRESS}
- FRONTEND_URL=${FRONTEND_URL}
- NODIT_API_KEY=${NODIT_API_KEY}
expose:
- "3000"
networks:
- bundle-network
restart: unless-stopped
nginx-proxy:
build:
context: . # <-- IMPORTANT: Build context is now the root directory
dockerfile: nginx/Dockerfile
# Pass the VITE variables as build arguments directly to the Nginx build
args:
- VITE_TREASURY_ADDRESS=${VITE_TREASURY_ADDRESS}
- VITE_API_URL=/api
- VITE_APP_URL=${VITE_APP_URL}
restart: unless-stopped
ports:
- "8087:80"
depends_on:
- backend
networks:
- bundle-network
networks:
bundle-network:
driver: bridge