-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yaml
112 lines (104 loc) · 2.95 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
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
version: "3.7"
services:
service-nest-backend:
container_name: nest-backend
image: testing_nest_backend:latest
build:
context: ./
dockerfile: Backend/Docker/dockerfile
target: development
args:
NODE_ENV: dev
ports:
- "3021:3021"
env_file:
- .env/redis.env
networks:
workshop-network:
volumes:
- ./Backend/nest-backend/src:/home/Backend/nest-backend/src
- /home/Backend/nest-backend/node_modules
command: npm run start:debug
service-nest-bgt:
container_name: nest-bgt
image: testing_nest_bgt:latest
build:
context: ./
dockerfile: Bgt/Docker/dockerfile
target: development
args:
NODE_ENV: dev
env_file:
- .env/redis.env
- .env/db.env
networks:
workshop-network:
volumes:
- ./Bgt/nest-bgt/src:/home/Bgt/nest-bgt/src
- /home/Bgt/nest-bgt/node_modules
command: npm run start:debug
service-angular-frontend:
container_name: angular-frontend
image: testing_frontend_angular:latest
build:
context: ./
dockerfile: Frontend/Docker/dockerfile
ports:
- "4200:4200"
networks:
workshop-network:
volumes:
- ./Frontend/angular-frontend/src:/home/Frontend/angular-frontend/src
- /home/Frontend/angular-frontend/node_modules
command: sh -c "ng serve --watch --host 0.0.0.0"
service-postgres:
container_name: workshop-postgres
image: postgres:14
networks:
workshop-network:
ipv4_address: 30.8.1.202
env_file:
- .env/db.env
ports:
- 5438:5432
volumes:
- WorkshopPgData:/var/lib/postgresql/workshopPgData
service-pgadmin:
container_name: workshop-pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- 5050:80
networks:
workshop-network:
service-redis:
container_name: workshop-redis
image: redis:7.0-alpine
ports:
- 6379:6379
networks:
workshop-network:
volumes:
- redisData:/var/lib/redis/data
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=service-redis
ports:
- 8081:8081
networks:
workshop-network:
depends_on:
- service-redis
networks:
workshop-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 30.8.0.0/16
volumes:
redisData:
WorkshopPgData: