-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (56 loc) · 1.04 KB
/
docker-compose.yml
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
version: '3.8'
services:
proxy:
container_name: websec-proxy
image: nginx:latest
restart: always
ports:
- '80:80'
- '443:443'
volumes:
- ./conf/nginx.conf:/etc/nginx/conf.d/default.conf
database:
container_name: websec-db
image: mongo:latest
ports:
- '27017:27017'
volumes:
- ./data:/data/db
networks:
- database
backend:
container_name: websec-backend
image: oven/bun:latest
restart: always
working_dir: /server
command: >
sh -c "bun install &&
bun --hot index.ts"
depends_on:
- database
volumes:
- ./server:/server
networks:
- default
- database
frontend:
container_name: websec-frontend
image: node:latest
working_dir: /app
command: >
sh -c "npm install &&
npm run docker"
volumes:
- ./app:/app
volumes:
proxy:
driver: local
database:
driver: local
frontend:
driver: local
backend:
driver: local
networks:
database:
driver: bridge