-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-carina.yml
48 lines (43 loc) · 1.16 KB
/
docker-compose-carina.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
version: '2'
services:
engine:
image: moorkop/mccy-engine:$MCCY_TAG
restart: always
volumes_from:
- docker-auth
networks:
- mccy-backend
- mccy-assets
command: >
--security.user.password=$MCCY_PASSWORD
--mccy.docker-host-uri=$DOCKER_HOST_URI
--mccy.docker-cert-path=/carina/clusters/$CARINA_USERNAME/$DEPLOY_CLUSTER
--mccy.deployment-powered-by.image-src=img/powered-by/powered-by-carina-wide.png
--mccy.deployment-powered-by.href=https://getcarina.com/
--mccy.assets.via=network
--mccy.assets.network=${BRANCH}_mccy-assets
--mccy.assets.my-name-on-network=mccy
docker-auth:
image: itzg/carina-cli
environment:
- CARINA_USERNAME
- CARINA_APIKEY
command: credentials $DEPLOY_CLUSTER
proxy:
image: moorkop/mccy-lets-nginx:master
restart: always
networks:
- mccy-backend
ports:
- "80:80"
- "443:443"
environment:
- "constraint:node==*-n1"
- "UPSTREAM=engine:8080"
- "EMAIL=$LETSENCRYPT_EMAIL"
- "DOMAIN=$LETSENCRYPT_DOMAIN"
networks:
mccy-backend:
driver: overlay
mccy-assets:
driver: overlay