This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
73 lines (69 loc) · 1.66 KB
/
docker-compose.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.7'
services:
eslint-configs-nest-demo:
container_name: eslint-configs-nest-demo
networks:
eslint-configs:
ipv4_address: 172.28.0.3
build:
context: .
dockerfile: dev.Dockerfile
args:
- user_id=$UID
- group_id=$GID
- user=$USER
ports:
- "3001:3001"
volumes:
- .:/app
depends_on:
- eslint-configs-mongo-dev
links:
- eslint-configs-mongo-dev
environment:
MONGO_HOST: eslint-configs-mongo-dev
MONGO_INITDB_DATABASE: eslint-configs-db
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_ROOT_USERNAME: root
MONGO_PORT: 27017
SERVER_PORT: 3001
NODE_ENV: development
working_dir: /app/packages/nest-demo
command: yarn start-dev
eslint-configs-react-demo:
container_name: eslint-configs-react-demo
networks:
eslint-configs:
ipv4_address: 172.28.0.4
build:
context: .
dockerfile: dev.Dockerfile
args:
- uid=$UID
- gid=$GID
- user=$USER
volumes:
- .:/app
ports:
- "3000:3000"
environment:
TSC_COMPILE_ON_ERROR: "true"
DISABLE_ESLINT_PLUGIN: "true"
API_URL: "http://localhost:3001"
working_dir: /app/packages/react-demo
command: yarn start
eslint-configs-mongo-dev:
container_name: eslint-configs-mongo-dev
image: mongo:5.0.2
networks:
eslint-configs:
ipv4_address: 172.28.0.5
environment:
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_ROOT_USERNAME: root
networks:
eslint-configs:
name: eslint-configs
ipam:
config:
- subnet: 172.28.0.0/16