Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.8"
- networks:
- registry:
- driver: bridge
- name: registry
- proxy:
- driver: bridge
- name: proxy
- volumes:
- registry-data:
- driver: local
- name: registry-data
- services:
- registry_alpha:
- image: registry:2.7.1
- container_name: registry_alpha
- restart: unless-stopped
- networks:
- - registry
- ports:
- - 13217:13217
- volumes:
- - registry-data:/data
- - ./registry/auth/:/auth/
- - ./registry/config.yml:/etc/docker/registry/config.yml
- registry_beta:
- image: registry:2.7.1
- container_name: registry_beta
- restart: unless-stopped
- networks:
- - registry
- ports:
- - 13218:13217
- volumes:
- - registry-data:/data
- - ./registry/auth/:/auth/
- - ./registry/config.yml:/etc/docker/registry/config.yml
- nginx:
- image: nginx:alpine
- container_name: nginx
- restart: always
- tty: true
- depends_on:
- - registry_alpha
- - registry_beta
- networks:
- - registry
- - proxy
- ports:
- - 80:80
- - 443:443
- volumes:
- - ./nginx/conf.d/:/etc/nginx/conf.d/
- - ./ssl/:/etc/nginx/ssl/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement