-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.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
networks:
alga-network:
driver: bridge
services:
algafood-mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: "FAce1122@@"
MYSQL_DATABASE: "algafoodapi"
MYSQL_USER: "delmondes"
MYSQL_PASSWORD: "FAce1122@@"
ports:
- "3306:3306"
networks:
- alga-network
algafood-oauth:
image: algafood-oauth:1.0
command: ["/wait-for-it.sh", "-t", "25", "algafood-mysql:3306", "--", "java", "-jar", "algafood-oauth.jar"]
environment:
DB_HOST: algafood-mysql
SPRING_SESSION_STORE_TYPE: redis
SPRING_REDIS_HOST: algafood-redis
ports:
- "8181:8181"
networks:
- alga-network
depends_on:
- algafood-mysql
algafood-redis:
image: redis:6.2.1-alpine
networks:
- alga-network
algafood-api:
image: algafoodapi:1.0
command: ["/wait-for-it.sh", "-t", "35", "algafood-oauth:8181", "--", "java", "-jar", "api.jar"] #substui CMD do dockerfile
environment:
DB_HOST: algafood-mysql
OAUTH_HOST: algafood-oauth
# ports:
# - "8080:8080"
networks:
- alga-network
depends_on:
- algafood-mysql
- algafood-oauth
algafood-nginx-proxy:
build: ./nginx
image: algafood-nginx-proxy
ports:
- "80:80"
networks:
- alga-network
depends_on:
- algafood-api