-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (33 loc) · 848 Bytes
/
docker-compose.yaml
File metadata and controls
36 lines (33 loc) · 848 Bytes
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
services:
webserver:
build:
context: frontend/new-react-vite/.
args:
- VITE_API_ADDRESS=ronstad.se:5687
ports:
- "80:80"
backend:
build: backend/.
ports:
- "5687:5687"
environment:
# Setting upp the connection info for the data base
- DBHOST=mysql:3306
- DBUSER=root
- DBPASS=pswd
# - CERT_FILE_PATH=/CERT/CERT
# - CERT_KEY_FILE_PATH=/CERT/KEY
# volumes:
# - ${CERT_FILE_PATH}:/CERT/CERT
# - ${CERT_KEY_FILE_PATH}:/CERT/KEY
mysql:
image: mysql:8.0
ports:
- "3306:3306"
volumes:
# this imports the example data tables
- ./example/example_db.sql:/docker-entrypoint-initdb.d/example_db.sql
# this is where the data is stored
- ./db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: pswd