-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (38 loc) · 892 Bytes
/
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
version: "3.9"
networks:
algafood-network:
driver: bridge
services:
algafood-mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: "12345"
ports:
- "13306:3306"
networks:
- algafood-network
algafood-api:
image: douglasjava26/algafood-api
command: ["/wait-for-it.sh", "algafood-mysql:3306", "-t", "30", "--", "java", "-jar", "api.jar"]
environment:
DB_HOST: algafood-mysql
SPRING_SESSION_STORE_TYPE: redis
SPRING_REDIS_HOST: algafood-redis
SPRING_PROFILES_ACTIVE: dev
networks:
- algafood-network
depends_on:
- algafood-mysql
algafood-proxy:
build: ./nginx
image: algafood-proxy
ports:
- "80:80"
networks:
- algafood-network
depends_on:
- algafood-api
algafood-redis:
image: redis:6.2.1-alpine
networks:
- algafood-network