This repository was archived by the owner on May 18, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
90 lines (83 loc) · 1.79 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
90 lines (83 loc) · 1.79 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '3.8'
services:
# Frontend NextJS Application
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
args:
- NODE_ENV=production
restart: always
environment:
- NODE_ENV=production
- NEXT_PUBLIC_API_URL=${API_URL}
- NEXT_PUBLIC_WS_URL=${WS_URL}
volumes:
- ./app:/app/app
- ./components:/app/components
- ./public:/app/public
- ./styles:/app/styles
networks:
- vote-network
# Backend Express Service
backend:
build:
context: ./server
dockerfile: Dockerfile
args:
- NODE_ENV=production
restart: always
environment:
- NODE_ENV=production
- MONGODB_URI=${MONGODB_URI}
- KYC_SERVICE_URL=${KYC_SERVICE_URL}
- BLOCKCHAIN_SERVICE_URL=${BLOCKCHAIN_SERVICE_URL}
- JWT_SECRET=${JWT_SECRET}
volumes:
- ./server:/app
- /app/node_modules
networks:
- vote-network
# KYC Python Service
kyc:
build:
context: ./kyc
dockerfile: Dockerfile
restart: always
environment:
- FLASK_ENV=production
volumes:
- ./kyc:/app
- kyc_data:/app/uploads
networks:
- vote-network
# Blockchain Service
blockchain:
build:
context: ./blockchain
dockerfile: Dockerfile
restart: always
environment:
- NODE_ENV=production
volumes:
- ./blockchain:/app
- /app/node_modules
networks:
- vote-network
# MongoDB
mongo:
image: mongo:latest
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
volumes:
- mongo_data:/data/db
networks:
- vote-network
networks:
vote-network:
driver: bridge
volumes:
mongo_data:
kyc_data: