其他分享
首页 > 其他分享> > docker 部署的gitlab备份与恢复

docker 部署的gitlab备份与恢复

作者:互联网

services:
gitlab:
image: gitlab/gitlab-ce:11.7.5-ce.0

restart: always

hostname: gitlab
container_name: gitlab
environment:
  GITLAB_OMNIBUS_CONFIG: |
    external_url 'http://192.168.10.10'
    gitlab_rails['gitlab_shell_ssh_port'] = 2222
   # Add any other gitlab.rb configuration here, each on its own line
volumes:
  - '/opt/gitlab/config:/etc/gitlab'
  - '/opt/gitlab/logs:/var/log/gitlab'
  - '/opt/gitlab/data:/var/opt/gitlab'
ports:
  - 80:80

- 443:443

  - '2222:22'
networks:
  - gitlab

networks:
gitlab:
driver: bridge
name: gitlab

* 备份gitlab
```bash
docker exec -t gitlab gitlab-rake gitlab:backup:create CRON=1

标签:opt,gitlab,data,备份,11.7,docker,backup
来源: https://blog.51cto.com/penguintux/2353299