-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
48 lines (45 loc) · 1.05 KB
/
docker-compose.dev.yml
File metadata and controls
48 lines (45 loc) · 1.05 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
# for running dev mode locally
version: '3'
services:
dev:
image: consensusdocker/qa
container_name: dev
working_dir: /app
command: "npm run dev"
depends_on:
- redis
environment:
- DEBUG=false
- NODE_ENV=development
- DB_HOST=${DB_LOCAL_HOST}
- DB_PORT=${DB_LOCAL_PORT}
- DB_PW=${DB_LOCAL_PW}
- DB_USER=${DB_LOCAL_USER}
- DB=${DB_LOCAL}
- LOG_LEVEL=${LOG_LEVEL}
- ENABLE_IPV6=true
- NETWORK_ACCESS=internal
- NO_INDEX=true
- PEPPER=${PEPPER}
- VIRTUAL_HOST=consensus.local
- VIRTUAL_PORT=3001
- VIRTUAL_PROTO=https
expose:
- 3001
volumes:
- .:/app
- node_modules:/app/node_modules
redis:
container_name: consensus_redis
image: redis:alpine
sysctls:
# fixes warning when using redis with the barebones alpine image
net.core.somaxconn: '511'
# connect our localhost to the nginx reverse proxy
networks:
default:
external:
name: nginx-proxy
volumes:
node_modules:
external: true