-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
44 lines (44 loc) · 1 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
services:
client:
build: ./client
depends_on:
- server
env_file:
- .env
ports:
- 3000:3000
volumes:
- /app/node_modules/
- /app/.next/
server:
build: ./server
depends_on:
- database
env_file:
- .env
ports:
- 3010:3010 # HTTP
- 3020:3020 # WS
volumes:
- /app/node_modules/
database:
image: mongo:8
command: ["mongod", "--auth"]
env_file:
- .env
volumes:
- ./database/data:/data/db
- ./database/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
expose:
- 27017
cleanup_worker:
build: ./server
command: ["node", "dist/cleanup.js"]
profiles:
- manual
depends_on:
- database
env_file:
- .env
volumes:
- /app/node_modules/