-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (86 loc) · 2.13 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "3.8"
services:
mysql:
container_name: db12w
image: mysql:8.0.33
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: reactlibrarydatabase
# MYSQL_PORT: 3306
networks:
- shared-network
volumes:
- mysqlvolume:/var/lib/mysql
- ./db:/docker-entrypoint-initdb.d
# mysql-workbench:
# container_name: mysqlwbcontainer
# image: linuxserver/mysql-workbench:8.0.33
# restart: always
# environment:
# CUSTOM_USER: abc
# PASSWORD: root
# CUSTOM_PORT: 5050
# ports:
# - 5050:5050
# networks:
# - shared-network
# depends_on:
# - mysql
# volumes:
# - mysql-workbench-volume:/var/lib/mysql
nginx:
image: nginx
# container_name: nginx_container
restart: always
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
- ./certs/localsslexample-key.pem:/etc/nginx/certs/devopsbyexample-key.pem
- ./certs/localsslexample.pem:/etc/nginx/certs/devopsbyexample.pem
ports:
- 80:80
- 443:443
networks:
- shared-network
depends_on:
- server
- client
server:
container_name: bookwise_server
restart: unless-stopped
image: bookwise-server-image:1.0.0
build:
context: Backend
dockerfile: Dockerfile
environment:
# - spring_datasource_driver-class-name=
- spring_datasource_url=jdbc:mysql://db12w:3306/reactlibrarydatabase
- spring_datasource_username=root
- spring_datasource_password=root
ports: #outside:inside(container) #8443
- 8080:8080
networks:
- shared-network
depends_on:
- mysql
client:
container_name: bookwise_client
restart: unless-stopped
image: bookwise-client-image:1.0.0
build:
context: Frontend
dockerfile: Dockerfile
# ports: #outside:inside(container)
# - 3000:3000
# environment:
# - REACT_APP_API=https://localhost/api/api/fdfd
networks:
- shared-network
depends_on:
- server
volumes:
mysqlvolume:
# mysql-workbench-volume:
networks:
shared-network:
driver: bridge