-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
140 lines (137 loc) · 3.87 KB
/
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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: "3.8"
services:
backend-graphql-api-service:
build:
dockerfile: Dockerfile
context: ./backend-graphql-api-service
# Only build development stage from Dockerfile
target: development
args:
- IMAGE_VERSION=14
# Mount our host dir to the docker container
# Mount api directory (./api) to (:) docker container (/mohankomas/src/app)
# Reflect File changes from host to container
volumes:
- ./backend-graphql-api-service:/mohank/src/app
- /mohank/src/app/node_modules/
# RUN in debug mode: npm run start:debug --> Also start your vscode debugger
# Run in dev mode: npm run start:dev
command: npm run start:dev
depends_on:
- postgres
- redis
environment:
DATABASE_URL: postgres://postgres:javascript@postgres:5432/student
NODE_ENV: development
PORT: 8000
REDIS_URL: redis://localhost:6379
ports:
- 8000:8000
backend-bulljs:
build:
dockerfile: Dockerfile
context: ./backend-bulljs
# Only build development stage from Dockerfile
target: development
# Mount our host dir to the docker container
# Mount api directory (./api) to (:) docker container (/mohank/src/app)
# Reflect File changes from host to container
volumes:
- ./backend-bulljs:/mohank/src/app
- /mohank/src/app/node_modules/
# RUN in debug mode: npm run start:debug --> Also start your vscode debugger
# Run in dev mode: npm run start:dev
command: npm run start:dev
depends_on:
- redis
environment:
NODE_ENV: development
PORT: 4001
REDIS_URL: redis://localhost:6379
ports:
- 4001:4001
nestjs-postgraphile:
build:
dockerfile: Dockerfile
context: ./nestjs-postgraphile
# Only build development stage from Dockerfile
target: development
# Mount our host dir to the docker container
# Mount api directory (./api) to (:) docker container (/mohank/src/app)
# Reflect File changes from host to container
volumes:
- ./nestjs-postgraphile:/mohank/src/app
- /mohank/src/app/node_modules/
# RUN in debug mode: npm run start:debug --> Also start your vscode debugger
# Run in dev mode: npm run start:dev
command: npm run start:dev
depends_on:
- postgres
- redis
environment:
DATABASE_URL: postgres://postgres:javascript@postgres:5432/student
NODE_ENV: development
PORT: 5000
REDIS_URL: redis://localhost:6379
ports:
- 5000:5000
frontend-angular-ui:
build:
dockerfile: Dockerfile
context: ./frontend-angular-ui
target: development
command: npm run start
volumes:
- ./frontend-angular-ui:/mohank/frontend/src/app
- /mohank/frontend/src/app/node_modules
ports:
- 4200:4200
links:
- backend-graphql-api-service
- backend-bulljs
- nestjs-postgraphile
postgres:
image: postgres:10.4
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: javascript
POSTGRES_DB: student
ports:
- 5432:5432
redis:
image: redis
container_name: redis_container_1
environment:
- ALLOW_EMPTY_PASSWORD-yes
ports:
- 6379:6379
redis-commander:
container_name: redis_commander_container_1
image: rediscommander/redis-commander
restart: always
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
socket:
build:
dockerfile: Dockerfile
context: ./socketCluster
volumes:
- ./socketCluster:/usr/src/
- /usr/src/node_modules/
restart: always
environment:
PORT: 8002
ports:
- 8002:8002
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
depends_on:
- postgres
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: javascript
ports:
- 5050:80