forked from datopian/deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-cloud.yml
93 lines (93 loc) · 2 KB
/
docker-cloud.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
proxy:
restart: always
image: 'dockercloud/haproxy:latest'
links:
- frontend
- assembler
- auth
- rawstore
- specstore
ports:
- '80:80'
roles:
- global
tags:
- ${PROJECT}-${STAGE}
frontend:
autoredeploy: true
restart: always
image: datopian/frontend:latest
ports:
- "4000"
environment:
VIRTUAL_HOST: ${DOMAIN},https://${DOMAIN}
SITE_URL: https://${DOMAIN}
API_URL: https://${DOMAIN_API}
BITSTORE_URL: https://${PKGSTORE_BUCKET}
tags:
- ${PROJECT}-${STAGE}
auth:
autoredeploy: true
restart: always
image: datopian/auth
ports:
- "8000"
target_num_containers: 1
environment:
VIRTUAL_HOST: ${DOMAIN_API}/auth/*
GUNICORN_PORT: 8000
DATABASE_URL: ${RDS_URI}
EXTERNAL_ADDRESS: ${DOMAIN_API}
PRIVATE_KEY:
PUBLIC_KEY:
GOOGLE_KEY:
GOOGLE_SECRET:
GITHUB_KEY:
GITHUB_SECRET:
tags:
- ${PROJECT}-${STAGE}
rawstore:
autoredeploy: true
restart: always
image: 'datopian/bitstore:latest'
ports:
- '8000'
target_num_containers: 1
links:
- auth
environment:
VIRTUAL_HOST: ${DOMAIN_API}/rawstore/*
AUTH_SERVER: http://auth:8000
STORAGE_ACCESS_KEY_ID: ${AWS_ACCESS_KEY}
STORAGE_SECRET_ACCESS_KEY: ${AWS_SECRET_KEY}
STORAGE_BUCKET_NAME: ${RAWSTORE_BUCKET}
STORAGE_PATH_PATTERN: '{md5}'
tags:
- ${PROJECT}-${STAGE}
assembler:
autoredeploy: true
restart: always
environment:
VIRTUAL_HOST: ${DOMAIN_API}/pipelines/*
SOURCESPEC_REGISTRY_DB_ENGINE: ${RDS_URI}
DPP_BASE_PATH: /pipelines/
PKGSTORE_BUCKET: ${PKGSTORE_BUCKET}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_KEY}
image: 'datopian/assembler:latest'
tags:
- ${PROJECT}-${STAGE}
specstore:
autoredeploy: true
restart: always
links:
- auth
environment:
VIRTUAL_HOST: ${DOMAIN_API}/source/*
AUTH_SERVER: auth:8000
DATABASE_URL: ${RDS_URI}
expose:
- '8000'
image: 'datopian/specstore:latest'
tags:
- ${PROJECT}-${STAGE}