From 69bcf3527d484d0b1d4a6e7ae7d756f1e43d1934 Mon Sep 17 00:00:00 2001 From: ngtuna Date: Thu, 30 Jun 2016 23:27:36 +0700 Subject: [PATCH] add some sample docker-compose files --- examples/docker-compose.yml | 10 ++++++ examples/docker-gitlab.yml | 67 +++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 examples/docker-compose.yml create mode 100644 examples/docker-gitlab.yml diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml new file mode 100644 index 00000000..42c1e9dd --- /dev/null +++ b/examples/docker-compose.yml @@ -0,0 +1,10 @@ +web: + image: tuna/docker-counter23 + ports: + - "5000:5000" + links: + - redis +redis: + image: redis:3.0 + ports: + - "6379" diff --git a/examples/docker-gitlab.yml b/examples/docker-gitlab.yml new file mode 100644 index 00000000..9cf8cc66 --- /dev/null +++ b/examples/docker-gitlab.yml @@ -0,0 +1,67 @@ +postgresql: + restart: always + image: sameersbn/postgresql:9.4-18 + environment: + - DB_USER=gitlab + - DB_PASS=password + - DB_NAME=gitlabhq_production + - DB_EXTENSION=pg_trgm + volumes: + - /srv/docker/gitlab/postgresql:/var/lib/postgresql:rw + ports: + - "5432" +gitlab: + restart: always + image: sameersbn/gitlab:8.6.4 + links: + - redisio:redisio + - postgresql:postgresql + ports: + - "10080:80" + - "10022:22" + environment: + - TZ=Asia/Kolkata + - GITLAB_TIMEZONE=Kolkata + - GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alpha-numeric-string + - GITLAB_HOST=git.default.cluster.local + - GITLAB_PORT=80 + - GITLAB_SSH_PORT=22 + - GITLAB_NOTIFY_ON_BROKEN_BUILDS=true + - GITLAB_NOTIFY_PUSHER=false + - GITLAB_EMAIL=notifications@example.com + - GITLAB_EMAIL_REPLY_TO=noreply@example.com + - GITLAB_INCOMING_EMAIL_ADDRESS=reply@example.com + - GITLAB_BACKUP_SCHEDULE=daily + - GITLAB_BACKUP_TIME=01:00 + - DB_TYPE=postgres + - DB_HOST=postgresql + - DB_PORT=5432 + - DB_USER=gitlab + - DB_PASS=password + - DB_NAME=gitlab_production + - REDIS_HOST=redisio + - REDIS_PORT=6379 + - SMTP_ENABLED=false + - SMTP_DOMAIN=www.example.com + - SMTP_HOST=smtp.gmail.com + - SMTP_PORT=587 + - SMTP_USER=mailer@example.com + - SMTP_PASS=password + - SMTP_STARTTLS=true + - SMTP_AUTHENTICATION=login + - IMAP_ENABLED=false + - IMAP_HOST=imap.gmail.com + - IMAP_PORT=993 + - IMAP_USER=mailer@example.com + - IMAP_PASS=password + - IMAP_SSL=true + - IMAP_STARTTLS=false + volumes: + - /srv/docker/gitlab/gitlab:/home/git/data:rw +redisio: + restart: always + image: sameersbn/redis + volumes: + - /srv/docker/gitlab/redis:/var/lib/redis:rw + ports: + - "6379"