Skip to content

Commit

Permalink
Adding Gitlab_Docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JAlcocerT authored Oct 16, 2023
1 parent d51930d commit f2d5b35
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dev/Gitlab_Docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: '3'

services:
web:
image: 'gitlab/gitlab-ce:latest'
container_name: 'gitlab'
restart: always
hostname: 'gitlab.example.com' # Replace with your domain or IP
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.example.com' # Replace with your domain or IP
# Add any additional configuration options here
ports:
- '80:80'
- '443:443'
- '22:22'
volumes:
- 'gitlab-config:/etc/gitlab'
- 'gitlab-logs:/var/log/gitlab'
- 'gitlab-data:/var/opt/gitlab'

volumes:
gitlab-config:
gitlab-logs:
gitlab-data:

0 comments on commit f2d5b35

Please sign in to comment.