-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (44 loc) · 906 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
49
50
51
52
#* Docker Compose version
version: "3.9"
#* All services to be used will be declared
services:
#* Service name
backend:
build: ./server
ports:
- "3000:3000"
networks:
- intranet
database: #* Image to use
image: mysql:8.0.33
init: true
restart: unless-stopped
#* Volume where information persists
volumes:
#*- "./server/src/database/todoListDB.sql"
- mysql-data:/var/lib/mysql
#* Port exhibition
ports:
- "3306:3306"
networks:
- intranet
#* Environment variables
environment:
MYSQL_ROOT_PASSWORD: 123456789
MYSQL_DATABASE: root
frontend:
build: .
ports:
- "4200:4200"
networks:
- intranet
volumes:
- .:/home/app
restart: unless-stopped
#* Volumes to be used
volumes:
mysql-data:
#* Networks to be used
networks:
intranet:
driver: bridge