-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-release.yml
65 lines (60 loc) · 1.46 KB
/
docker-compose-release.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
services:
# nginx for proxy and routing
nginx:
image: ianunay/weather-app-nginx:v4
container_name: nginx_weather_prediction
volumes:
- ./nginx/nginx-release.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
command: /bin/sh -c "nginx -g 'daemon off;'"
depends_on:
- api
networks:
- weather-shared-network
restart: unless-stopped
# REST API in kotlin-jvm, springboot, okhttp3
api:
image: ianunay/weather-app-api:v5
ports:
- "8080:8080"
networks:
- weather-shared-network
restart: unless-stopped
depends_on:
- redis-cache-weather-prediction
# Redis server for caching in api
redis-cache-weather-prediction:
image: "redis"
container_name: redis-cache-weather-prediction
ports:
- "6379:6379"
volumes:
- ./my-redis-cache/:/data
networks:
- weather-shared-network
restart: unless-stopped
# Consul for service discovery
consul_ssm:
image: ianunay/weather-app-ssm:v1
container_name: consul_ssm
environment:
- CONSUL_HTTP_ADDR=consul:8500
ports:
- "8500:8500"
- "8600:8600/udp"
volumes:
- ./my-consul-data/:/consul/data
networks:
- weather-shared-network
restart: unless-stopped
# UI for weather prediction
ui:
image: ianunay/weather-app-ui:v2
ports:
- "5001:5001"
networks:
- weather-shared-network
restart: unless-stopped
networks:
weather-shared-network: