docs(docker): fix diff format. (#14035)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
9e456b5a56
commit
c57e1f2653
1 changed files with 16 additions and 16 deletions
|
@ -91,10 +91,10 @@ services:
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
ports:
|
ports:
|
||||||
- - "3000:3000"
|
- - "3000:3000"
|
||||||
- - "222:22"
|
- - "222:22"
|
||||||
+ - "8080:3000"
|
+ - "8080:3000"
|
||||||
+ - "2221:22"
|
+ - "2221:22"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Databases
|
## Databases
|
||||||
|
@ -118,11 +118,11 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
+ - DB_TYPE=mysql
|
+ - DB_TYPE=mysql
|
||||||
+ - DB_HOST=db:3306
|
+ - DB_HOST=db:3306
|
||||||
+ - DB_NAME=gitea
|
+ - DB_NAME=gitea
|
||||||
+ - DB_USER=gitea
|
+ - DB_USER=gitea
|
||||||
+ - DB_PASSWD=gitea
|
+ - DB_PASSWD=gitea
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- gitea
|
- gitea
|
||||||
|
@ -169,11 +169,11 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
+ - DB_TYPE=postgres
|
+ - DB_TYPE=postgres
|
||||||
+ - DB_HOST=db:5432
|
+ - DB_HOST=db:5432
|
||||||
+ - DB_NAME=gitea
|
+ - DB_NAME=gitea
|
||||||
+ - DB_USER=gitea
|
+ - DB_USER=gitea
|
||||||
+ - DB_PASSWD=gitea
|
+ - DB_PASSWD=gitea
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- gitea
|
- gitea
|
||||||
|
@ -226,8 +226,8 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- gitea
|
- gitea
|
||||||
volumes:
|
volumes:
|
||||||
- - ./gitea:/data
|
- - ./gitea:/data
|
||||||
+ - gitea:/data
|
+ - gitea:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue