-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
73 lines (67 loc) · 1.71 KB
/
docker-compose.prod.yml
File metadata and controls
73 lines (67 loc) · 1.71 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
# Production Docker Compose
#
# Usage: JWT_SECRET=your-secret docker compose -f docker-compose.prod.yml up -d --build
#
# Access: http://localhost:3080 (app + API + Swagger via nginx proxy)
#
# For Portainer + NPM: proxy app.example.com -> pixie-client:3080 (enable WebSocket)
#
# See DEPLOYMENT.md for full documentation
services:
mongo:
image: mongo:7
container_name: pixie-mongo
restart: unless-stopped
volumes:
- mongo-data:/data/db
networks:
- pixie-net
# NOT exposed externally - only accessible within Docker network
mongo-express:
image: mongo-express:latest
container_name: pixie-mongo-express
restart: unless-stopped
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongo:27017
ME_CONFIG_BASICAUTH_USERNAME: ${ME_USERNAME:-admin}
ME_CONFIG_BASICAUTH_PASSWORD: ${ME_PASSWORD:-changeme}
ports:
- "${ME_PORT:-8081}:8081"
depends_on:
- mongo
networks:
- pixie-net
server:
build:
context: ./server
target: production-stage
image: pixie-server:latest
container_name: pixie-server
restart: unless-stopped
environment:
PORT: 3000
MONGO_URI: mongodb://mongo:27017/pixie
CLIENT_ORIGIN: ${CLIENT_ORIGIN:-*}
JWT_SECRET: ${JWT_SECRET:?JWT_SECRET is required}
NODE_ENV: production
depends_on:
- mongo
networks:
- pixie-net
client:
build:
context: ./client
target: production-stage
args:
VITE_API_URL: ${VITE_API_URL:-}
image: pixie-client:latest
container_name: pixie-client
restart: unless-stopped
ports:
- "${CLIENT_PORT:-3080}:80"
networks:
- pixie-net
volumes:
mongo-data:
networks:
pixie-net: