-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (89 loc) · 2.32 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
version: '3'
services:
mongo:
container_name: mongo_container
image: "mongo:3.6.21-xenial"
ports:
- "27017:27017"
networks:
- happinessnetwork
ulimits:
nofile: 65536
# memlock:
# soft: -1
# hard: 1
volumes:
- mongodata:/data/db
teamservice1:
container_name: teamservice1
image: awconstable/teamservice
depends_on:
- mongo
- consul
networks:
- happinessnetwork
ports:
- "8081:8081"
environment:
- server.port=8081
- spring_data_mongodb_host=mongo_container
- spring_data_mongodb_port=27017
- spring_data_mongodb_database=teamservice-test
- spring_cloud_discovery_enabled=true
- spring_cloud_service-registry_auto-registration_enabled=true
- spring_cloud_consul_discovery_enabled=true
- spring_cloud_consul_config_enabled=true
- spring_cloud_consul_host=consul_container
- spring_cloud_consul_port=8500
- spring_cloud_consul_discovery_prefer-ip-address=true
teamservice2:
container_name: teamservice2
image: awconstable/teamservice
depends_on:
- mongo
- consul
networks:
- happinessnetwork
ports:
- "8082:8082"
environment:
- server.port=8082
- spring_data_mongodb_host=mongo_container
- spring_data_mongodb_port=27017
- spring_data_mongodb_database=teamservice-test
- spring_cloud_discovery_enabled=true
- spring_cloud_service-registry_auto-registration_enabled=true
- spring_cloud_consul_discovery_enabled=true
- spring_cloud_consul_config_enabled=true
- spring_cloud_consul_host=consul_container
- spring_cloud_consul_port=8500
- spring_cloud_consul_discovery_prefer-ip-address=true
mailhog:
container_name: mailhog
image: mailhog/mailhog
networks:
- happinessnetwork
ports:
- "1025:1025"
- "8025:8025"
prom:
container_name: prometheus_container
image: prom/prometheus
ports:
- "9090:9090"
networks:
- happinessnetwork
volumes:
- "/vagrant/prometheus.yml:/etc/prometheus/prometheus.yml"
consul:
container_name: consul_container
image: consul
ports:
- "8500:8500"
- "8600:8600"
networks:
- happinessnetwork
volumes:
mongodata:
networks:
happinessnetwork: