-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (57 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
60 lines (57 loc) · 1.45 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
networks:
bug:
name: bug
driver: bridge
volumes:
bug_node_modules:
services:
app:
container_name: bug
build:
context: .
dockerfile: ./src/server/Dockerfile.dev
restart: unless-stopped
user: root
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- .:/home/node/bug:cached
- bug_node_modules:/home/node/bug/node_modules
environment:
MODULE_PORT: 3200
MODULE_HOME: /home/node/module
MONGO_CONTAINER: bug-mongo
DOCKER_NETWORK_NAME: bug
BUG_CONTAINER: bug
CLEANUP: 2
BUG_PORT: 3101
BUG_HOST: "127.0.0.1"
LOG_HTTP: "false"
PORT: 3000
NODE_ENV: development
SESSION_SECRET: aSecretForYourSessions
depends_on:
- mongo
networks:
- bug
ports:
- 3000:3000
- 3101:3101
command: npm run dev
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
mongo:
image: mongo:latest
restart: unless-stopped
container_name: bug-mongo
networks:
- bug
ports:
- 27017:27017
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"