-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
101 lines (93 loc) · 2.17 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
version: '3'
services:
c2-api-service:
container_name: c2-api-service
hostname: c2-api-service
build:
context: c2-api/.
dockerfile: Dockerfile
ports:
- 8000:8000
- 8888:8888
networks:
customnetwork:
ipv4_address: 172.24.0.2
depends_on:
- c2-db-service
- c2-redis-service
c2-db-service:
container_name: c2-db-service
hostname: c2-db-service
image: postgres:12.12
environment:
POSTGRES_DB: postgres
POSTGRES_USER: c2redteam
POSTGRES_PASSWORD: sEPkp7eK7q3xgV
volumes:
- ./data-volume/postgres_db:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
customnetwork:
ipv4_address: 172.24.0.3
c2-redis-service:
container_name: c2-redis-service
hostname: c2-redis-service
image: redis:latest
volumes:
- ./data-volume/redis:/data
- ./redis.conf:/usr/local/etc/redis/redis.conf # Mount the Redis config file
command: ["redis-server", "/usr/local/etc/redis/redis.conf"] # Use the custom config file
ports:
- "6379:6379"
networks:
customnetwork:
ipv4_address: 172.24.0.4
c2-ws-service:
container_name: c2-ws-service
hostname: c2-ws-service
build:
context: c2-ws/.
dockerfile: Dockerfile
ports:
- 9999:9999
networks:
customnetwork:
ipv4_address: 172.24.0.5
depends_on:
- c2-db-service
- c2-redis-service
c2-proxy-service:
container_name: c2-proxy-service
hostname: c2-proxy-service
build:
context: c2-proxy/.
dockerfile: Dockerfile
ports:
- 9000:9000
networks:
customnetwork:
ipv4_address: 172.24.0.6
depends_on:
- c2-db-service
- c2-redis-service
- c2-api-service
c2-telegram-service:
container_name: c2-telegram-service
hostname: c2-telegram-service
build:
context: c2-telegram/.
dockerfile: Dockerfile
ports:
- 9989:9989
networks:
customnetwork:
ipv4_address: 172.24.0.7
depends_on:
- c2-db-service
- c2-redis-service
networks:
customnetwork:
ipam:
config:
- subnet: 172.24.0.0/16