portainer_templates/Template/Stack/gitlab.yml
Qballjos e4a7dfec1a ...
2021-02-27 14:48:51 +01:00

21 lines
595 B
YAML

---
version: "3.6"
services:
gitlab:
image: gitlab/gitlab-ce:latest
hostname: ${DOMAIN}
ports:
- "${GITLABSSHPORT}:22"
- "${GITLABPORT80}:80"
- "${GITLABPORT443}:443"
volumes:
- "${APPDATA}/gitlab/data:/var/opt/gitlab"
- "${APPDATA}/gitlab/logs:/var/log/gitlab"
- "${APPDATA}/gitlab/config:/etc/gitlab"
restart: unless-stopped
gitlab-runner:
image: gitlab/gitlab-runner:alpine
volumes:
- "${APPDATA}/gitlab/config-runner:/etc/gitlab-runner"
- "/var/run/docker.sock:/var/run/docker.sock"
restart: unless-stopped