-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (42 loc) · 965 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
44
45
46
47
48
version: '3.8'
services:
cafe-db:
image: mysql
container_name: cafe-db
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: cafe
ports:
- 3307:3306
volumes:
- cafe-management:/var/lib/mysql
networks:
- backend
cafe-backend:
image: cafe-management/backend:1.0
container_name: cafe-backend
ports:
- 8081:8081
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://cafe-db:3306/cafe?createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true&useSSL=false
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: password
depends_on:
- cafe-db
networks:
- backend
- frontend
cafe-frontend:
image: cafe-management/frontend:1.0
container_name: cafe-frontend
ports:
- 4200:80
depends_on:
- cafe-backend
networks:
- frontend
volumes:
cafe-management:
networks:
backend:
frontend: