-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
112 lines (112 loc) · 2.47 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.9'
services:
postgres:
container_name: postgres
image: postgres
restart: always
ports:
- 5454:5432
volumes:
- pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${DATABASE_NAME}
- POSTGRES_USER=${DATABASE_USERNAME}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
redis:
container_name: redis
image: redis:alpine
ports:
- 6000:6379
nest-app:
container_name: nest-app
build:
context: ./backend_app
dockerfile: Dockerfile
restart: always
ports:
- 5000:5000
depends_on:
postgres:
condition: service_started
redis:
condition: service_started
environment:
-POSTGRES_DB: "test"
-POSTGRES_USER: "test"
-POSTGRES_PASSWORD: "123456789"
volumes:
- /app/server/node_modules
- ./backend_app:/app/server
react-app:
container_name: react-app
build:
context: front_app
dockerfile: Dockerfile
restart: always
ports:
- 3000:3000
depends_on:
- nest-app
volumes:
- /app/client/node_modules
- ./front_app:/app/client
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
depends_on:
postgres:
condition: service_started
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- 5050:80
volumes:
- pgadmin-data:/var/lib/pgadmin
# mongo:
# image: mongo
# restart: always
# ports:
# - 27017:27017
# volumes:
# - mongo-data:/data/db
# environment:
# - MONGO_INITDB_ROOT_USERNAME=admin
# - MONGO_INITDB_ROOT_PASSWORD=123456789
# mongo-express:
# image: mongo-express
# restart: always
# ports:
# - 8080:8081
# environment:
# - ME_CONFIG_MONGODB_ADMINUSERNAME=admin
# - ME_CONFIG_MONGODB_ADMINPASSWORD=123456789
# - ME_CONFIG_MONGODB_SERVER=mongo
# migration:
# build:
# context: ./backend_app
# command:
# [
# "./wait-for-it/wait-for-it.sh",
# "postgres:5432",
# "--",
# "npm",
# "run",
# "typeorm",
# "--",
# "migration:run",
# "-d",
# "backend_up/src/common/config/ormconfigMigration.ts"
# ]
# links:
# - postgres
# depends_on:
# - postgres
volumes:
# mongo-data:
# driver: local
pg-data:
driver: local
pgadmin-data:
driver: local