You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.3 KiB
75 lines
2.3 KiB
4 years ago
|
version: "3.7"
|
||
|
|
||
|
services:
|
||
|
portus-frontend:
|
||
|
image: opensuse/portus:head
|
||
|
environment:
|
||
|
CCONFIG_PREFIX: PORTUS
|
||
|
PORTUS_SECRET_KEY_BASE: b494a25faa8d22e430e843e220e424e10ac84d2ce0e64231f5b636d21251eb6d267adb042ad5884cbff0f3891bcf911bdf8abb3ce719849ccda9a4889249e5c2
|
||
|
PORTUS_KEY_PATH: /certificates/portus.key
|
||
|
PORTUS_CHECK_SSL_USAGE_ENABLED: "false"
|
||
|
PORTUS_PASSWORD: testpass
|
||
|
PORTUS_DB_ADAPTER: postgresql
|
||
|
PORTUS_DB_HOST: postgres
|
||
|
PORTUS_DB_PORT: 5432
|
||
|
PORTUS_DB_DATABASE: postgres
|
||
|
PORTUS_DB_USERNAME: postgres
|
||
|
PORTUS_DB_PASSWORD: postgres
|
||
|
PORTUS_MACHINE_FQDN_VALUE: 127.0.0.1
|
||
|
RAILS_SERVE_STATIC_FILES: "true"
|
||
|
RAILS_SERVE_STATIC_ASSETS: "true"
|
||
|
ports:
|
||
|
- 3000:3000
|
||
|
volumes:
|
||
|
- ./secrets:/certificates:ro
|
||
|
|
||
|
portus-backend:
|
||
|
image: opensuse/portus:head
|
||
|
environment:
|
||
|
CCONFIG_PREFIX: PORTUS
|
||
|
PORTUS_SECRET_KEY_BASE: b494a25faa8d22e430e843e220e424e10ac84d2ce0e64231f5b636d21251eb6d267adb042ad5884cbff0f3891bcf911bdf8abb3ce719849ccda9a4889249e5c2
|
||
|
PORTUS_KEY_PATH: /certificates/portus.key
|
||
|
PORTUS_CHECK_SSL_USAGE_ENABLED: "false"
|
||
|
PORTUS_PASSWORD: testpass
|
||
|
PORTUS_DB_ADAPTER: postgresql
|
||
|
PORTUS_DB_HOST: postgres
|
||
|
PORTUS_DB_PORT: 5432
|
||
|
PORTUS_DB_DATABASE: postgres
|
||
|
PORTUS_DB_USERNAME: postgres
|
||
|
PORTUS_DB_PASSWORD: postgres
|
||
|
PORTUS_MACHINE_FQDN_VALUE: 127.0.0.1
|
||
|
PORTUS_BACKGROUND: "true"
|
||
|
volumes:
|
||
|
- ./secrets:/certificates:ro
|
||
|
|
||
|
postgres:
|
||
|
image: postgres
|
||
|
environment:
|
||
|
POSTGRES_USER: postgres
|
||
|
POSTGRES_DB: postgres
|
||
|
POSTGRES_PASSWORD: postgres
|
||
|
|
||
|
registry:
|
||
|
image: registry
|
||
|
environment:
|
||
|
REGISTRY_AUTH_TOKEN_REALM: http://127.0.0.1:3000/v2/token
|
||
|
REGISTRY_AUTH_TOKEN_SERVICE: 127.0.0.1:5000
|
||
|
REGISTRY_AUTH_TOKEN_ISSUER: 127.0.0.1
|
||
|
EXTERNAL_IP: 127.0.0.1
|
||
|
REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE: /secrets/portus.crt
|
||
|
REGISTRY_NOTIFICATIONS_ENDPOINTS: >
|
||
|
- name: portus
|
||
|
url: http://portus-frontend:3000/v2/webhooks/events
|
||
|
timeout: 2000ms
|
||
|
threshold: 5
|
||
|
backoff: 1s
|
||
|
volumes:
|
||
|
- ./secrets:/secrets:ro
|
||
|
- ./registry/config.yml:/etc/docker/registry/config.yml:ro
|
||
|
- registry:/var/lib/registry:rw
|
||
|
ports:
|
||
|
- 5000:5000
|
||
|
|
||
|
volumes:
|
||
|
registry:
|