-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 933 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: "3"
services:
web:
build: .
ports:
- "8080:80"
environment:
- SERVERNAME=registry.loc
- DOCUMENTROOT=dist
- ENV_DOCKER_REGISTRY_HOST=registry
- ENV_DOCKER_REGISTRY_PORT=5000
# - ENV_DOCKER_REGISTRY_USE_SSL=1
- ENV_REGISTRY_PROXY_FQDN=127.0.0.1
- ENV_REGISTRY_PROXY_PORT=5005
# - ENV_USE_SSL=yes
links:
- registry:registry
networks:
default:
ipv4_address: 172.200.0.2
restart: always
registry:
image: registry:2.8
ports:
- "5005:5000"
volumes:
- ./config:/etc/docker/registry
# - ./path_to_local_cert.crt:/certs/registry.crt
# - ./path_to_local_cert.key:/certs/registry.key
networks:
default:
ipv4_address: 172.200.0.3
restart: always
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.200.0.0/24
gateway: 172.200.0.1