forked from DenverJ/docker-image-portus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
103 lines (102 loc) · 3.25 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '2'
services:
db:
container_name: portus_db
image: percona:5.7
environment:
MYSQL_ROOT_PASSWORD: "doesnotmatter"
portus:
image: denverj/portus:2.1.1
container_name: portus
build:
context: .
environment:
PORTUS_DEBUG: 'true'
#PORTUS_CREATE_CERT: 'false'
PORTUS_ADMIN_PASSWORD: 'adminadminadmin'
REGISTRY_SSL_ENABLED: 'true'
REGISTRY_HOSTNAME: registry.dev
REGISTRY_PORT: 443
REGISTRY_NAME: Registry
PORTUS_MACHINE_FQDN: portus.dev
PORTUS_PORT: 443
PORTUS_PRODUCTION_HOST: db
PORTUS_PRODUCTION_DATABASE: portus
PORTUS_PRODUCTION_USERNAME: root
PORTUS_PRODUCTION_PASSWORD: "doesnotmatter"
PORTUS_DEVELOPMENT_HOST: db
PORTUS_DEVELOPMENT_DATABASE: portus
PORTUS_DEVELOPMENT_USERNAME: root
PORTUS_DEVELOPMENT_PASSWORD: "doesnotmatter"
PORTUS_GRAVATAR_ENABLED: 'true'
PORTUS_DELETE_ENABLED: 'true'
PORTUS_KEY_PATH: /certs/privkey.pem
PORTUS_CRT_PATH: /certs/fullchain.pem
PORTUS_PASSWORD: "doesnotmatter"
PORTUS_SECRET_KEY_BASE: something
PORTUS_CHECK_SSL_USAGE_ENABLED: 'true'
PORTUS_SMTP_ENABLED: 'false'
PORTUS_SMTP_ADDRESS: 'smtp.example.com'
PORTUS_SMTP_PORT: 587
PORTUS_SMTP_USER_NAME: '[email protected]'
PORTUS_SMTP_PASSWORD: 'password'
PORTUS_SMTP_DOMAIN: 'example.com'
PORTUS_LDAP_ENABLED: 'false'
PORTUS_LDAP_HOSTNAME: ""
PORTUS_LDAP_PORT: ""
PORTUS_LDAP_METHOD: ""
PORTUS_LDAP_BASE: ""
PORTUS_LDAP_UID: cn
PORTUS_LDAP_AUTHENTICATION_ENABLED: ""
PORTUS_LDAP_AUTHENTICATION_BIND_DN: ""
PORTUS_LDAP_AUTHENTICATION_PASSWORD: ""
PORTUS_LDAP_GUESS_EMAIL_ENABLED: 'true'
PORTUS_LDAP_GUESS_EMAIL_ATTR: mail
PORTUS_REGISTRY_JWT_EXIRATION_TIME: 30
RAILS_ENV: 'development'
SSL_CERT_FILE: /certs/fullchain.pem
volumes:
- ./test/certs:/certs
depends_on:
- db
- registry
external_links:
- "nginx:registry.dev"
registry:
image: registry:2.5.0
container_name: registry
environment:
# we can use environment variables to configure registry, see https://github.com/docker/distribution/blob/master/configuration/configuration.go#L13
REGISTRY_LOG_LEVEL: warn
REGISTRY_STORAGE_DELETE_ENABLED: 'true'
REGISTRY_AUTH: token
REGISTRY_AUTH_TOKEN_REALM: https://portus.dev/v2/token
REGISTRY_AUTH_TOKEN_SERVICE: registry.dev
REGISTRY_AUTH_TOKEN_ISSUER: portus.dev
REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE: /certs/fullchain.pem
REGISTRY_HTTP_SECRET: somethingother
REGISTRY_NOTIFICATIONS_ENDPOINTS: >
- name: portus
url: http://portus:3000/v2/webhooks/events
timeout: 5000ms
threshold: 2
backoff: 20s
volumes:
- ./test/certs:/certs
external_links:
- "nginx:portus.dev"
nginx:
image: nginx:latest
container_name: nginx
volumes:
- ./test/portus.dev.conf:/etc/nginx/conf.d/portus.dev.conf
- ./test/registry.dev.conf:/etc/nginx/conf.d/registry.dev.conf
- ./test/certs:/certs
depends_on:
- portus
- registry
ports:
- "443:443"
external_links:
- "portus:portus.dev"
- "registry:registry.dev"