Inital
This commit is contained in:
commit
7203b3d343
21
db.dockerfile
Normal file
21
db.dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
version: "3.6"
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:9.6
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: zpzc-s434686-user
|
||||
POSTGRES_PASSWORD: zpzc-s434686-password
|
||||
POSTGRES_DB: zpzc-s434686-db
|
||||
volumes:
|
||||
- dbdata:/var/lib/postgresql/data
|
||||
networks:
|
||||
- gitea
|
||||
|
||||
volumes:
|
||||
dbdata:
|
30
gitea.dockerfile
Normal file
30
gitea.dockerfile
Normal file
@ -0,0 +1,30 @@
|
||||
version: "3.6"
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:1.13.2
|
||||
container_name: gitea
|
||||
environment:
|
||||
USER_UID: 1000
|
||||
USER_GID: 1000
|
||||
DB_TYPE: postgres
|
||||
DB_HOST: db:5432
|
||||
DB_NAME: zpzc-s434686-db
|
||||
DB_USER: zpzc-s434686-user
|
||||
DB_PASSWD: zpzc-s434686-password
|
||||
restart: always
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- ./gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "443:443"
|
||||
- "222:22"
|
||||
depends_on:
|
||||
- db
|
Loading…
Reference in New Issue
Block a user