-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-dev.yml
71 lines (66 loc) · 1.57 KB
/
docker-compose-dev.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
services:
# UI in react using functional component and react hooks
ui:
build:
context: ./weather-prediction-ui
dockerfile: Dockerfile-ui
ports:
- "5001:5001"
networks:
- weather-shared-network
restart: unless-stopped
# consul kv for secret manager
consul:
build:
context: ./ssm
dockerfile: Dockerfile-ssm
environment:
CONSUL_HTTP_ADDR: "consul:8500"
container_name: consul_ssm
ports:
- "8500:8500"
- "8600:8600/udp"
volumes:
- ./my-consul-data/:/consul/data
networks:
- weather-shared-network
restart: unless-stopped
# nginx for proxy and routing
nginx:
image: nginx:latest
container_name: nginx_weather_prediction
volumes:
- ./nginx/nginx.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:
build:
context: ./weather-prediction-api
dockerfile: Dockerfile-api
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"
ports:
- "6379:6379"
container_name: redis-cache-weather-prediction
volumes:
- ./my-redis-cache/:/data
networks:
- weather-shared-network
restart: unless-stopped
networks:
weather-shared-network: