-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
90 lines (81 loc) · 1.85 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
version: '3.3'
services:
db:
image: postgres:latest
restart: always
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- 5432:5432
networks:
- app-network
redis:
image: redis:6.0.8
restart: always
ports:
- 6379:6379
networks:
- app-network
rabbitmq:
image: heidiks/rabbitmq-delayed-message-exchange:3.9.13-management
container_name: 'rabbitmq'
restart: always
environment:
RABBITMQ_DEFAULT_USER: superdao
RABBITMQ_DEFAULT_PASS: superdao
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
ports:
- 5672:5672
- 15672:15672
networks:
- app-network
zookeeper:
image: wurstmeister/zookeeper
container_name: zookeeper
ports:
- "2181:2181"
networks:
- app-network
nginx:
image: nginx
volumes:
- ./dev.conf.template:/etc/nginx/templates/default.conf.template
environment:
FRONTEND_HOST: http://host.docker.internal:7998
BACKEND_HOST: http://host.docker.internal:7999
ports:
- "8000:8000"
kafka:
image: wurstmeister/kafka
container_name: kafka
ports:
- '9092:9092'
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_BROKER_ID: 2
KAFKA_CREATE_TOPICS: 'sd-app-transactions:1:1'
networks:
- app-network
kafkaui:
restart: on-failure
image: 'docker.redpanda.com/vectorized/console:master-173596f'
ports:
- '8686:8080'
environment:
- KAFKA_BROKERS=localhost:9092
networks:
- app-network
extra_hosts:
- 'localhost:host-gateway'
depends_on:
kafka:
condition: service_started
networks:
app-network:
driver: bridge
volumes:
mongo_volume:
redis_volume: