Add git server service

pull/1/head
Davide Polonio 2020-12-01 13:04:41 +00:00
parent 2f8eff21f6
commit babefb31ec
1 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,48 @@
version: '3.7'
services:
git-server:
image: gitea/gitea:1
restart: always
volumes:
- gs_data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "127.0.0.1:2222:22"
env_file:
- env-git-server
depends_on:
- git-server-db
networks:
- internal
- proxy
git-server-db:
image: postgres:9.6-alpine
restart: always
env_file:
- env-git-server
volumes:
- gs_db:/var/lib/postgresql/data
networks:
- internal
volumes:
gs_data:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/docker/git_server/gs_data"
gs_db:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/docker/git_server/gs_db"
networks:
proxy:
external: true
internal: