version: "3.3" services: git: image: gogs/gogs deploy: labels: - com.df.notify=true - com.df.distribute=true - com.df.serviceDomain=git.sdsys.ru - com.df.servicePath=/ - com.df.port=3000 - com.df.httpsOnly=true ports: - "8022:22" volumes: - git_ldata:/data depends_on: - database networks: - proxy - git database: image: mariadb:10.3 environment: MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mysql_root volumes: - database_ldata:/var/lib/mysql configs: - source: gogs_db target: /docker-entrypoint-initdb.d/gogs_db.sql networks: - git secrets: - mysql_root secrets: mysql_root: file: ./mysql_root.txt configs: gogs_db: file: ./gogs_db.sql networks: proxy: external: true git: driver: overlay volumes: git_ldata: driver: local driver_opts: device: "/dev/disk/by-label/gogs_git" type: "xfs" database_ldata: driver: local driver_opts: device: "/dev/disk/by-label/gogs_db" type: "xfs"