-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1.16 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
version: '3.8' # Убедитесь, что у вас актуальная версия Compose
services:
mongo:
image: mongo:4.4.18
container_name: mongo
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
networks:
- backend
environment:
- 'MONGO_INITDB_ROOT_USERNAME=mstuca_master'
- 'MONGO_INITDB_ROOT_PASSWORD=mstuca_master'
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
networks:
- backend
backend:
image: therealyou322/backend:latest
container_name: backend
volumes:
- /path/to/deploy/files/:/app/files
ports:
- "3004:3004"
- "3001:3001"
- "3002:3002"
- "3003:3003"
depends_on:
- mongo
- rabbitmq
environment:
DATABASE_URL: mongodb://mstuca_master:mstuca_master@mongo:27017/
RABBITMQ_URL: amqp://user:password@rabbitmq:5672
PROXIES_PATH: /app/files/proxies.txt
networks:
- backend
networks:
backend:
driver: bridge
volumes:
mongo-data: