GarbageYard

docker-compose.yaml

Sep 6th, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.34 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4.   postgresql:
  5.     image: postgres:9.6.3
  6.     environment:
  7.      - "POSTGRES_DB=gitlabhq_production"
  8.       - "POSTGRES_USER=gitlab"
  9.       - "POSTGRES_PASSWORD=password"
  10.     volumeMounts:
  11.     - name: gluster-vol1
  12.       mountPath: /var/lib/postgresql
  13.     volumes:
  14.       - name: gluster-vol1
  15.     persistentVolumeClaim:
  16.       claimName: gluster-dyn-pvc
  17.     restart: unless-stopped
  18.  
  19.   redisio:
  20.     image: sameersbn/redis:latest
  21.     volumeMounts:
  22.     - name: gluster-vol1
  23.       mountPath: /var/lib/redis
  24.     volumes:
  25.       - name: gluster-vol1
  26.     persistentVolumeClaim:
  27.       claimName: gluster-dyn-pvc
  28.     restart: unless-stopped
  29.    
  30.   gitlab:
  31.     image: sameersbn/gitlab:9.3.9
  32.     ports:
  33.      - "443:443"
  34.       - "80:80"
  35.       - "10022:22"
  36.     environment:
  37.      - "GITLAB_PORT=80"
  38.       - "GITLAB_SSH_PORT=10022"
  39.       - "GITLAB_SECRETS_DB_KEY_BASE=110Ect4CBH06RSEQm4uKC4MPh3uThFjxbpCyPzxfdLkkssrStDnrQgpSSV"
  40.       - "GITLAB_SECRETS_SECRET_KEY_BASE=2KO4r2XDZzy3XVrH2r0QNyhQcP9P0t6j71MBDUmfx4F5KZ9j4Md"
  41.       - "GITLAB_SECRETS_OTP_KEY_BASE=MWxqmqqXz9iz7Up4tEGBFSjYwUwLAlIErL1Ry1rWCTWBjw3qxtvOM"
  42.     volumeMounts:
  43.     - name: gluster-vol1
  44.       mountPath: /home/git/data
  45.     volumes:
  46.       - name: gluster-vol1
  47.     persistentVolumeClaim:
  48.       claimName: gluster-dyn-pvc
  49.     restart: unless-stopped
Add Comment
Please, Sign In to add comment