-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (37 loc) · 1000 Bytes
/
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
version: '3.4'
services:
node:
image: jalian/mern-dev
depends_on:
- db
ports:
- "${WEB_PORT:-8000}:${WEB_PORT:-8000}"
- "${WEB_DEV_PORT:-3000}:${WEB_DEV_PORT:-3000}"
- "${VS_CODE_PORT:-8443}:${VS_CODE_PORT:-8443}"
volumes:
- "${XSHARED}:/home/dev/Shared"
- "${XADDITIONS}:/home/dev/.additions"
- "${XLOCAL}:/home/dev/.local"
user: "${XUID}:${XGID}"
environment:
NODE_ENV: development
MONGO_URL: mongodb://db:27017/mern-starter
WEB_PORT: ${WEB_PORT:-8000}
PORT: ${WEB_PORT:-8000}
WEB_DEV_PORT: ${WEB_DEV_PORT:-3000}
VS_CODE_PORT: ${VS_CODE_PORT:-8443}
stdin_open: true
tty: true
db:
image: mongo:latest
volumes:
- "${XDBDATA}:/data/db"
db-express:
image: mongo-express:latest
depends_on:
- db
ports:
- "${VCAP_APP_PORT:-8081}:${VCAP_APP_PORT:-8081}"
environment:
VCAP_APP_PORT: ${VCAP_APP_PORT:-8081}
ME_CONFIG_MONGODB_SERVER: db