Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Busboom committed Sep 29, 2017
1 parent f9e2f6f commit 919fba2
Show file tree
Hide file tree
Showing 4 changed files with 177 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
environment.txt
99 changes: 99 additions & 0 deletions gitlab/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
version: '2'

services:
redis:
restart: always
image: sameersbn/redis:latest
command:
- --loglevel warning
volumes:
- var-lib-redis-vol:/var/lib/redis:Z

postgresql:
restart: always
image: sameersbn/postgresql:9.6-2
volumes:
- var-lib-postgres-vol:/var/lib/postgresql:Z
env_file: environment.txt
environment:
- DB_USER=gitlab
- DB_NAME=gitlabhq_production
- DB_EXTENSION=pg_trgm

gitlab:
restart: always
image: sameersbn/gitlab:9.5.5
depends_on:
- redis
- postgresql
ports:
- "10080:80"
- "10022:22"
volumes:
- home-git-data-vol:/home/git/data:Z
env_file: environment.txt
environment:
- DEBUG=false

- DB_ADAPTER=postgresql
- DB_HOST=postgresql
- DB_PORT=5432
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production

- REDIS_HOST=redis
- REDIS_PORT=6379

- TZ=Asia/Kolkata
- GITLAB_TIMEZONE=Kolkata

- GITLAB_HTTPS=false
- SSL_SELF_SIGNED=false

- GITLAB_HOST=localhost
- GITLAB_PORT=10080
- GITLAB_SSH_PORT=10022
- GITLAB_RELATIVE_URL_ROOT=
- GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alphanumeric-string
- GITLAB_SECRETS_SECRET_KEY_BASE=long-and-random-alphanumeric-string
- GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alphanumeric-string

- GITLAB_ROOT_PASSWORD=
- GITLAB_ROOT_EMAIL=

- GITLAB_NOTIFY_ON_BROKEN_BUILDS=true
- GITLAB_NOTIFY_PUSHER=false

- [email protected]
- [email protected]
- [email protected]

- GITLAB_BACKUP_SCHEDULE=daily
- GITLAB_BACKUP_TIME=01:00

- SMTP_ENABLED=true
- SMTP_METHOD=smtp
- SMTP_DOMAIN=mailbot.civicknowledge.com
- SMTP_HOST=smtp.mailgun.org
- SMTP_PORT=25
- [email protected]
- SMTP_STARTTLS=true
- SMTP_AUTHENTICATION=:login

- IMAP_ENABLED=true
- IMAP_HOST=imap.gmail.com
- IMAP_PORT=993
- [email protected]
- IMAP_SSL=true
- IMAP_INTERVAL=30

volumes:
home-git-data-vol:
var-lib-redis-vol:
var-lib-postgres-vol:





17 changes: 17 additions & 0 deletions redmine/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

DOCKER ?= docker

# NOTE! Docker-compose gets the project name from the directory the compose file is in,
# or the -p option, or the COMPOSE_PROJECT_NAME environmental variable.
PROJECT_NAME=redmine

VOLUMES= \
-v $(PROJECT_NAME)_var-lib-postgresql-vol:/var/lib/postgresql \
-v $(PROJECT_NAME)_home-redmine-data-vol:/home/redmine/data

.PHONY: build push shell run start stop restart reload rm rmf release


shell:
$(DOCKER) run --rm -i -t $(VOLUMES) $(ENV) busybox

60 changes: 60 additions & 0 deletions redmine/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
version: '2'

services:
postgresql:
image: sameersbn/postgresql:9.6-2
env_file: environment.txt
environment:
- DB_USER=redmine
- DB_NAME=redmine_production
volumes:
- var-lib-postgresql-vol:/var/lib/postgresql

redmine:
image: sameersbn/redmine:3.4.2
depends_on:
- postgresql
env_file: environment.txt
environment:
- TZ=America/Los_Angeles

- DB_ADAPTER=postgresql
- DB_HOST=postgresql
- DB_PORT=5432
- DB_USER=redmine
- DB_NAME=redmine_production

- REDMINE_PORT=10083
- REDMINE_HTTPS=false
- REDMINE_RELATIVE_URL_ROOT=
- REDMINE_SUDO_MODE_ENABLED=false
- REDMINE_SUDO_MODE_TIMEOUT=15
- REDMINE_CONCURRENT_UPLOADS=2
- REDMINE_BACKUP_SCHEDULE=daily
- REDMINE_BACKUP_EXPIRY=
- REDMINE_BACKUP_TIME=

- SMTP_ENABLED=true
- SMTP_METHOD=smtp
- SMTP_DOMAIN=mailbot.civicknowledge.com
- SMTP_HOST=smtp.mailgun.org
- SMTP_PORT=25
- [email protected]
- SMTP_STARTTLS=true
- SMTP_AUTHENTICATION=:login

- IMAP_ENABLED=true
- IMAP_HOST=imap.gmail.com
- IMAP_PORT=993
- [email protected]
- IMAP_SSL=true
- IMAP_INTERVAL=30

ports:
- "10083:80"
volumes:
- home-redmine-data-vol:/home/redmine/data

volumes:
var-lib-postgresql-vol:
home-redmine-data-vol:

0 comments on commit 919fba2

Please sign in to comment.