2020-12-05 12:48:09 +01:00
|
|
|
---
|
2020-12-01 14:04:41 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
git-server:
|
2021-11-17 13:06:27 +01:00
|
|
|
image: gitea/gitea:1.15.6
|
2020-12-01 14:04:41 +01:00
|
|
|
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:
|