File tree 5 files changed +61
-0
lines changed
5 files changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ MYSQL_ROOT_PASSWORD = root
2
+ MYSQL_DATABASE = timetracker
3
+ MYSQL_USER = timetracker
4
+ MYSQL_PASSWORD = timetracker
Original file line number Diff line number Diff line change
1
+ CREATE USER IF NOT EXISTS ' timetracker' @' %' IDENTIFIED BY ' timetracker' ;
2
+ GRANT ALL PRIVILEGES ON * .* TO ' timetracker' @' %' WITH GRANT OPTION;
Original file line number Diff line number Diff line change
1
+ FROM mysql:8.0
Original file line number Diff line number Diff line change
1
+ /time-tracker-front
2
+ /time-tracker-back
Original file line number Diff line number Diff line change
1
+ version : ' 3.5'
2
+ services :
3
+ front :
4
+ container_name : timetracker-front
5
+ build : ./time-tracker-front
6
+ volumes :
7
+ - ' ./time-tracker-front:/usr/src/app'
8
+ ports :
9
+ - ' 4200:4200'
10
+ command : >
11
+ sh -c "npm install && ng serve --host 0.0.0.0 --port 4200"
12
+ networks :
13
+ timetracker :
14
+ ipv4_address : 172.10.1.1
15
+
16
+ back :
17
+ container_name : timetracker-back
18
+ build : ./time-tracker-back
19
+ volumes :
20
+ - ' ./time-tracker-back:/usr/src/app'
21
+ ports :
22
+ - ' 3000:3000'
23
+ command : >
24
+ sh -c "npm install && npm run start:dev"
25
+ networks :
26
+ timetracker :
27
+ ipv4_address : 172.10.1.2
28
+
29
+ mysql :
30
+ container_name : timetracker-mysql
31
+ build :
32
+ context : .docker
33
+ dockerfile : images/mysql/Dockerfile
34
+ command : --default-authentication-plugin=mysql_native_password
35
+ restart : always
36
+ ports :
37
+ - 3306:3306
38
+ volumes :
39
+ - ./.docker/data/mysql:/var/lib/mysql
40
+ - ./.docker/conf/mysql:/docker-entrypoint-initdb.d/:ro
41
+ env_file :
42
+ - ./.docker/conf/mysql/development.env
43
+ networks :
44
+ timetracker :
45
+ ipv4_address : 172.10.1.3
46
+
47
+ networks :
48
+ timetracker :
49
+ driver : bridge
50
+ ipam :
51
+ config :
52
+ - subnet : 172.10.0.0/16
You can’t perform that action at this time.
0 commit comments