-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (53 loc) · 1.36 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
57 lines (53 loc) · 1.36 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
# Docker compose file for development.
volumes:
db: {}
uploads: {}
sessions: {}
static: {}
src: {}
services:
mongo:
# note, problems with mongo v5+ in a VM!
image: mongo:4
command: --wiredTigerCacheSizeGB 0.5
expose:
- "27017"
restart: unless-stopped
volumes:
- db:/data/db
- ./data/backups:/data/backups
mongo-express:
image: mongo-express
restart: unless-stopped
depends_on:
- mongo
ports:
- "8081:8081"
environment:
- ME_CONFIG_BASICAUTH_USERNAME=mongo
- ME_CONFIG_BASICAUTH_PASSWORD=mongo
platform:
build:
context: .
dockerfile: src/docker/dev/Dockerfile
environment:
- NODE_OPTIONS=--max_old_space_size=2048
env_file: "server.env.local"
restart: unless-stopped
depends_on:
- 'mongo'
ports:
- "3000:3000"
- "24678:24678"
volumes:
- uploads:/app/uploads
- ./src:/app/src/:consistent
- ./static:/app/static/:ro
- sessions:/app/sessions
squib:
build: src/docker/squib
expose:
- "3001"
volumes:
- uploads:/root/work/uploads
restart: unless-stopped