File tree 5 files changed +533
-93
lines changed
5 files changed +533
-93
lines changed Original file line number Diff line number Diff line change @@ -35,4 +35,4 @@ lerna-debug.log*
35
35
! .vscode /extensions.json
36
36
37
37
# Docker
38
- /docker
38
+ /docker
Original file line number Diff line number Diff line change 3
3
# NestJS Docker Starter Kit
4
4
- NestJS v10.x
5
5
- TypeScript v5.x
6
+ - MariaDB v10.11.x (default)
7
+ - MySQL v8.1.x
6
8
- Postgres v16.x
7
9
- pgAdmin v4.x
8
10
- Adminer v4.8.x
22
24
### App
23
25
- URL: http://localhost:3000
24
26
25
- ### Adminer
27
+ ### phpMyAdmin
26
28
- URL: http://localhost:8080
29
+ - Server: ` db `
30
+ - Username: ` refactorian `
31
+ - Password: ` refactorian `
32
+ - Database: ` refactorian `
33
+
34
+ ### Adminer
35
+ - URL: http://localhost:9090
36
+ - Server: ` db `
37
+ - Username: ` refactorian `
38
+ - Password: ` refactorian `
39
+ - Database: ` refactorian `
40
+
41
+ <!-- ### Adminer
42
+ - URL: http://localhost:9090
27
43
- System: `PostgreSQL`
28
44
- Server: `db`
29
45
- Username: `refactorian`
33
49
### pgAdmin
34
50
- URL: http://localhost:5050
35
51
- Email: `admin@admin.com`
36
- - Password: ` password `
52
+ - Password: `password` -->
37
53
38
54
### Docker compose commands
39
55
- Build or rebuild services
Original file line number Diff line number Diff line change @@ -12,30 +12,58 @@ services:
12
12
- db
13
13
14
14
db :
15
- image : postgres:16
15
+ image : mariadb:10.11
16
+ # image: mysql:8.1
17
+ command : ' --default-authentication-plugin=mysql_native_password'
16
18
environment :
17
- - POSTGRES_USER=refactorian
18
- - POSTGRES_PASSWORD=refactorian
19
- - POSTGRES_DB=refactorian
19
+ - MYSQL_ROOT_PASSWORD=rootpass
20
+ - MYSQL_DATABASE=refactorian
21
+ - MYSQL_USER=refactorian
22
+ - MYSQL_PASSWORD=refactorian
20
23
volumes :
21
- - ./docker/db/data:/var/lib/postgresql/data
24
+ - ./docker/db/data:/var/lib/mysql
22
25
- ./docker/db/sql:/docker-entrypoint-initdb.d
23
26
ports :
24
- - 5432:5432
27
+ - 3306:3306
25
28
26
- pgadmin :
27
- image : dpage/pgadmin4
28
- environment :
29
- - PGADMIN_DEFAULT_EMAIL=admin@admin.com
30
- - PGADMIN_DEFAULT_PASSWORD=password
29
+ phpmyadmin :
30
+ image : phpmyadmin/phpmyadmin
31
31
ports :
32
- - 5050:80
33
- depends_on :
34
- - db
32
+ - 8080:80
33
+ links :
34
+ - db
35
+ environment :
36
+ PMA_HOST : db
37
+ PMA_PORT : 3306
38
+ PMA_ARBITRARY : 1
39
+ volumes :
40
+ - ./docker/phpmyadmin/sessions:/sessions
41
+
42
+ # db:
43
+ # image: postgres:16
44
+ # environment:
45
+ # - POSTGRES_USER=refactorian
46
+ # - POSTGRES_PASSWORD=refactorian
47
+ # - POSTGRES_DB=refactorian
48
+ # volumes:
49
+ # - ./docker/db/data:/var/lib/postgresql/data
50
+ # - ./docker/db/sql:/docker-entrypoint-initdb.d
51
+ # ports:
52
+ # - 5432:5432
53
+
54
+ # pgadmin:
55
+ # image: dpage/pgadmin4
56
+ # environment:
57
+ # - PGADMIN_DEFAULT_EMAIL=admin@admin.com
58
+ # - PGADMIN_DEFAULT_PASSWORD=password
59
+ # ports:
60
+ # - 5050:80
61
+ # depends_on:
62
+ # - db
35
63
36
64
adminer :
37
65
image : adminer
38
66
ports :
39
- - 8080 :8080
67
+ - 9090 :8080
40
68
depends_on :
41
69
- db
You can’t perform that action at this time.
0 commit comments