-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
132 lines (124 loc) · 3.24 KB
/
docker-compose.yaml
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
services:
api:
image: camptocamp/shared_config_manager:latest
environment: &scm_env
C2C_AUTH_GITHUB_CLIENT_ID: an-id
C2C_AUTH_GITHUB_CLIENT_SECRET: a-secret
C2C_AUTH_GITHUB_REPOSITORY: camptocamp/shared_config_manager
C2C_AUTH_GITHUB_SECRET: a-secret-long-a-secret
STATS_VIEW: 1
# STATSD_ADDRESS: 172.17.0.1:8125
# STATSD_PREFIX: shared_config_manager.dev.app
LOG_TYPE: console
LOG_LEVEL: DEBUG
C2CWSGIUTILS_LOG_LEVEL: INFO
OTHER_LOG_LEVEL: DEBUG
SCM_SECRET: changeme
GITHUB_SECRET: changeme
C2C_REDIS_URL: redis://redis:6379/1
DEVELOPMENT: 1
GUNICORN_PARAMS: '-b :8080 --reload'
MASTER_CONFIG: |
type: git
repo: /repos/master
API_BASE_URL: http://api:8080/scm
TARGET: /config/api
SCM_ENV_PREFIXES: TEST_
TEST_ENV: 42
TEST_KEY: secret
volumes_from:
- tests:rw
links:
- redis
hostname: api
api_test_user:
image: camptocamp/shared_config_manager:latest
environment:
<<: *scm_env
TEST_USER: Test
volumes_from:
- tests:rw
links:
- redis
hostname: api_test_user
api_inline:
image: camptocamp/shared_config_manager:latest
environment:
<<: *scm_env
MASTER_CONFIG: |
sources:
test_git:
type: git
repo: /repos/test_git
tags: ['test']
template_engines:
- type: shell
environment_variables: true
API_BASE_URL: http://api_inline:8080/scm
TARGET: /config/api-inline
C2C_REDIS_URL: redis://redis:6379/2
C2C_BROADCAST_PREFIX: broadcast_scm_inline_
volumes_from:
- tests:rw
links:
- redis
hostname: api_inline
api_file:
image: camptocamp/shared_config_manager:latest
environment: &scm_file_env
<<: *scm_env
MASTER_CONFIG: ''
API_BASE_URL: http://api_file:8080/scm
TARGET: /config/api-file
C2C_REDIS_URL: redis://redis:6379/3
C2C_BROADCAST_PREFIX: broadcast_scm_file_
volumes_from:
- tests:rw
links:
- redis
hostname: api_file
slave:
image: camptocamp/shared_config_manager:latest
environment:
<<: *scm_env
TARGET: /config/slave
command: ['shared-config-slave']
volumes_from:
- tests:rw
links:
- redis
hostname: slave
slave-others:
image: camptocamp/shared_config_manager:latest
environment:
<<: *scm_env
TAG_FILTER: others
TARGET: /config/slave-other
TEST_ENV: 42
command: ['shared-config-slave']
volumes_from:
- tests:rw
links:
- redis
hostname: slave-others
slave-file:
image: camptocamp/shared_config_manager:latest
environment:
<<: *scm_file_env
TARGET: /config/slave-file
command: ['shared-config-slave']
volumes_from:
- tests:rw
links:
- redis
hostname: slave-file
redis:
image: redis:7.4.2
mem_limit: 64m
command: redis-server --save "" --appendonly no
tests:
image: camptocamp/shared_config_manager-acceptance:latest
command: sleep infinity
volumes:
- ./acceptance_tests/results:/results
- ./acceptance_tests/acceptance:/acceptance_tests/acceptance