Advertisement
onlinejudge95

docker-compose

Feb 28th, 2021
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.17 KB | None | 0 0
  1. version: "3.8"
  2.  
  3. networks:
  4.   registry:
  5.     driver: bridge
  6.     name: registry
  7.   proxy:
  8.     driver: bridge
  9.     name: proxy
  10.  
  11. volumes:
  12.   registry-data:
  13.     driver: local
  14.     name: registry-data
  15.  
  16. services:
  17.   registry_alpha:
  18.     image: registry:2.7.1
  19.     container_name: registry_alpha
  20.     restart: unless-stopped
  21.     networks:
  22.      - registry
  23.     ports:
  24.      - 13217:13217
  25.     volumes:
  26.      - registry-data:/data
  27.       - ./registry/auth/:/auth/
  28.       - ./registry/config.yml:/etc/docker/registry/config.yml
  29.  
  30.   registry_beta:
  31.     image: registry:2.7.1
  32.     container_name: registry_beta
  33.     restart: unless-stopped
  34.     networks:
  35.      - registry
  36.     ports:
  37.      - 13218:13217
  38.     volumes:
  39.      - registry-data:/data
  40.       - ./registry/auth/:/auth/
  41.       - ./registry/config.yml:/etc/docker/registry/config.yml
  42.  
  43.   nginx:
  44.     image: nginx:alpine
  45.     container_name: nginx
  46.     restart: always
  47.     tty: true
  48.     depends_on:
  49.      - registry_alpha
  50.       - registry_beta
  51.     networks:
  52.      - registry
  53.       - proxy
  54.     ports:
  55.      - 80:80
  56.       - 443:443
  57.     volumes:
  58.      - ./nginx/conf.d/:/etc/nginx/conf.d/
  59.       - ./ssl/:/etc/nginx/ssl/
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement