-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yml
128 lines (122 loc) · 2.76 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
version: '3.8'
services:
client:
container_name: client
build:
dockerfile: Dockerfile
context: ./client
volumes:
- ./client:/poprostuwitold/client
- /poprostuwitold/client/node_modules/
depends_on:
- server
ports:
- 3000:3000
links:
- server
networks:
- main-network
restart: unless-stopped
server:
container_name: server
build:
dockerfile: Dockerfile
context: ./server
target: development
env_file: ./server/.env
volumes:
- ./server:/poprostuwitold/server
- /poprostuwitold/server/node_modules/
command: pnpm run start:debug
depends_on:
- postgres-main
- redis-main
ports:
- 4000:4000
networks:
- main-network
restart: unless-stopped
queue-worker:
container_name: queue-worker
build:
dockerfile: Dockerfile
context: ./workers/queues
target: development
env_file: ./workers/queues/.env
volumes:
- ./workers/queues:/poprostuwitold/workers/queues
- /poprostuwitold/workers/queues/node_modules/
command: pnpm run start:debug
depends_on:
- server
networks:
- main-network
restart: unless-stopped
postgres-main:
container_name: postgres-nest
image: postgres:15-alpine
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: postgres-nest
PGDATA: /data/postgres
volumes:
- postgres-volume:/data/postgres
ports:
- 5432:5432
networks:
- postgres-network
- main-network
restart: unless-stopped
pgadmin-main:
container_name: pgadmin-nest
image: dpage/pgadmin4:latest
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- pgadmin-volume:/data/pgadmin
ports:
- 8080:80
depends_on:
- postgres-main
networks:
- postgres-network
restart: unless-stopped
redis-main:
container_name: redis-nest
image: redis:latest
ports:
- 6379:6379
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis-volume:/data/redis
networks:
- redis-network
- main-network
restart: unless-stopped
redis-commander:
container_name: redis-commander-nest
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis-main:6379
- HTTP_USER=root
- HTTP_PASSWORD=qwerty
ports:
- 8081:8081
depends_on:
- redis-main
networks:
- redis-network
restart: unless-stopped
networks:
postgres-network:
driver: bridge
main-network:
driver: bridge
redis-network:
driver: bridge
volumes:
postgres-volume:
pgadmin-volume:
redis-volume: