-
Notifications
You must be signed in to change notification settings - Fork 0
/
meta-compose.yml
58 lines (58 loc) · 1.67 KB
/
meta-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
---
{% for arch in archs %}
registry{{arch}}:
image: library/registry:2
environment:
STORAGE_PATH: /storage
REGISTRY_AUTH_TOKEN_REALM: https://marina.io/jwt
REGISTRY_AUTH_TOKEN_SERVICE: container_registry
REGISTRY_AUTH_TOKEN_ISSUER: floating-dock
REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE: /registry/auth/registry.crt
volumes:
- "/opt/floating-dock/registry{{arch}}/storage:/storage"
- "/opt/floating-dock/registry/certs/registry.crt:/registry/auth/registry.crt"
{% endfor %}
postgres:
image: postgres:9.5
volumes:
- "/opt/floating-dock/database:/var/lib/postgresql/data"
environment:
POSTGRES_PASSWORD: rails_db
POSTGRES_USER: rails_db
app:
image: "cloudfleet/floating-dock"
links:
- postgres
env_file:
- .env
environment:
DB_HOST: "postgres"
DOCKER_REGISTRY_JWT_KEY: "/registry/auth/registry.key"
ARCHS: {{','.join(archs)}}
volumes:
- "/opt/floating-dock/registry/certs/registry.key:/registry/auth/registry.key"
worker:
image: "cloudfleet/floating-dock"
command: "sh -c /bin/sh bundle exec rake jobs:work"
environment:
DB_HOST: postgres
env_file:
- .env
links:
- postgres
nginx:
image: bradjonesllc/docker-nginx-letsencrypt
ports:
- "80:80"
- "443:443"
links:
- app
- registry
environment:
CERTS: {% for arch in archs %}{{arch}}.registry.marina.io,{% endfor %}marina.io
EMAIL: [email protected]
volumes:
- "/opt/floating-dock/nginx/ssl:/etc/nginx/ssl"
- "/opt/floating-dock/nginx/ssl/dhparam:/etc/ssl/dhparam"
- "/opt/floating-dock/nginx/letsencrypt:/etc/letsencrypt"
- "/opt/floating-dock/floating-dock-composition/nginx.conf:/etc/nginx/conf.d/ssl.conf"