-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
142 lines (127 loc) · 3.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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: '3'
services:
# redis setup, used by call state manager
redis:
container_name: redis
image: 'redis:4-alpine'
command: 'redis-server --requirepass spy0nM3'
ports:
- 6379:6379
volumes:
- ~/data/firstcontributions/redis:/var/lib/redis
networks:
docker_network:
ipv4_address: 172.30.1.1
stop_grace_period: 3s
# # zookeeper for kafka
# zookeeper:
# container_name: zookeeper
# image: zookeeper:3.5.5
# networks:
# docker_network:
# ipv4_address: 172.30.1.2
# #kafka for post pipeline
# kafka:
# container_name: kafka
# environment:
# - ALLOW_PLAINTEXT_LISTENER=yes
# - KAFKA_CFG_BROKER_ID=1
# - KAFKA_CFG_HOST_NAME=kafka
# - KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
# - KAFKA_CFG_NUM_PARTITIONS=3
# - KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
# - KAFKA_LISTENERS=PLAINTEXT://:9092
# - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://172.30.1.3:9092
# image: bitnami/kafka:2.2.1
# restart: on-failure
# networks:
# docker_network:
# ipv4_address: 172.30.1.3
# mongo for metrics meta store and live dashboard
mongo:
container_name: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: spy0nM3
image: mongo:latest
ports:
- 27017:27017
volumes:
- ~/data/firstcontributions/mongo:/data/db
networks:
docker_network:
ipv4_address: 172.30.1.4
# elasticsearch:
# image: "elasticsearch:2.4.4-alpine"
# container_name: elasticsearch
# environment:
# - discovery.type=single-node
# ports:
# - "9200:9200"
# - "9300:9300"
# volumes:
# - es_data:/usr/share/elasticsearch/data
# networks:
# docker_network:
# ipv4_address: 172.30.1.5
# stop_grace_period: 3s
gateway:
image: golang:1.18
container_name: gateway
env_file: ./env/gateway.env
volumes:
- .:/code
command: bash -c "cd /code && go run cmd/gateway/main.go"
networks:
docker_network:
ipv4_address: 172.30.1.6
restart: always
ports:
- "8090:80"
depends_on:
- redis
# userservice:
# build:
# context: ./
# dockerfile: deployments/userservice.Dockerfile
# image: userservice:latest
# container_name: userservice
# env_file: ./env/userservice.env
# networks:
# docker_network:
# ipv4_address: 172.30.1.7
# restart: always
# ports:
# - "8000:8000"
# depends_on:
# - mongo
explorer:
image: gokultp/graphql-explorer:c2d18f1ba2f66adf6c8c2ca4b38030e04cfb41d2
container_name: explorer
networks:
docker_network:
ipv4_address: 172.30.1.8
restart: always
ports:
- "8070:80"
depends_on:
- gateway
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "6831:6831/udp"
- "16686:16686"
networks:
docker_network:
ipv4_address: 172.30.1.9
volumes:
mongodb_data:
es_data:
redis_data:
# docker network interface
networks:
docker_network:
ipam:
driver: default
config:
- subnet: 172.30.1.0/16