-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (64 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
70 lines (64 loc) · 1.4 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
# Development Docker Compose
# Usage: docker compose up
services:
mongo:
image: mongo:7
container_name: pixie-mongo
volumes:
- mongo-data:/data/db
networks:
- pixie-net
mongo-express:
image: mongo-express:latest
container_name: pixie-mongo-express
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongo:27017
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: admin
ports:
- "8081:8081"
depends_on:
- mongo
networks:
- pixie-net
server:
build:
context: ./server
target: dev-stage
container_name: pixie-server
environment:
PORT: 3000
MONGO_URI: mongodb://mongo:27017/pixie
CLIENT_ORIGIN: http://localhost:5173
JWT_SECRET: dev-secret-key
ports:
- "3000:3000"
volumes:
- ./server/src:/app/src
- ./server/pixie-api.yaml:/app/pixie-api.yaml
depends_on:
- mongo
networks:
- pixie-net
command: npm run dev
client:
build:
context: ./client
target: dev-stage
container_name: pixie-client
environment:
VITE_API_URL: http://localhost:3000
ports:
- "5173:5173"
volumes:
- ./client/src:/app/src
- ./client/index.html:/app/index.html
depends_on:
- server
networks:
- pixie-net
command: npm run dev -- --host
volumes:
mongo-data:
networks:
pixie-net: