--- version: '3.7' services: git-server: image: gitea/gitea:1.15.6 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: