-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (60 loc) · 1.24 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
60
61
62
63
64
65
66
67
68
69
70
version: '3.8'
services:
api:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- db
environment: # Pass environment variables to the service
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/homedb
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
networks:
- backend
- frontend
container_name: apiurl
homemanagementfront:
build:
context: ./homeManagementFront
dockerfile: Dockerfile
args:
REACT_APP_API_BASE_URL: http://127.0.0.1:8080/api
ports:
- "4200:4200"
depends_on:
- api
networks:
- frontend
- backend
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: homedb
MYSQL_PASSWORD:
volumes:
- db-data:/var/lib/mysql
networks:
- backend
container_name: mysqlurl
phpmyadmin:
image: phpmyadmin:latest
container_name: pma
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
ports:
- 8001:80
networks:
- backend
volumes:
db-data:
networks:
backend:
frontend: