container_name

This commit is contained in:
Iwan Clement
2020-04-17 18:46:52 +02:00
parent 11fbcc39bc
commit 2a693e1404

18
gitlab/docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
version: 2
services:
web:
image: 'gitlab/gitlab-ce:latest'
container_name: gitlab_ce
restart: always
hostname: 'gitlab.devops-lyon.eu'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.devops-lyon.eu'
# Add any other gitlab.rb configuration here, each on its own line
ports:
- '80:80'
- '22:22'
volumes:
- 'gitlab_config:/etc/gitlab'
- 'gitlab_logs:/var/log/gitlab'
- 'gitlab_data:/var/opt/gitlab'