Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
125 lines (117 loc) · 3.21 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
125 lines (117 loc) · 3.21 KB
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
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__JWT__SECRET: a-secret-long-a-secret
C2C__AUTH__JWT__COOKIE__PATH: /scm
C2C__REDIS__URL: redis://redis:6379/1
SCM__SECRET: changeme
SCM__GITHUB_SECRET: changeme
SCM__MASTER_CONFIG: |
type: git
repo: /repos/master
SCM__SLAVE__API_BASE_URL: http://api:8080/scm
SCM__SLAVE__TARGET: /config/api
SCM__ENV_PREFIXES: TEST_
TEST_ENV: 42
TEST_KEY: secret
C2C__HTTP: 'true'
volumes_from:
- tests:rw
links:
- redis
hostname: api
api_test_user:
image: camptocamp/shared_config_manager:latest
environment:
<<: *scm_env
C2C__AUTH__TEST__USERNAME: Test
volumes_from:
- tests:rw
links:
- redis
hostname: api_test_user
api_inline:
image: camptocamp/shared_config_manager:latest
environment:
<<: *scm_env
SCM__MASTER_CONFIG: |
sources:
test_git:
type: git
repo: /repos/test_git
tags: ['test']
template_engines:
- type: shell
environment_variables: true
SCM__SLAVE__API_BASE_URL: http://api_inline:8080/scm
SCM__SLAVE__TARGET: /config/api-inline
C2C__REDIS__URL: redis://redis:6379/2
C2C__REDIS__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
SCM__MASTER_CONFIG: ''
SCM__SLAVE__API_BASE_URL: http://api_file:8080/scm
SCM__SLAVE__TARGET: /config/api-file
C2C__REDIS__URL: redis://redis:6379/3
C2C__REDIS__BROADCAST_PREFIX: broadcast_scm_file_
volumes_from:
- tests:rw
links:
- redis
hostname: api_file
slave:
image: camptocamp/shared_config_manager:latest
environment:
<<: *scm_env
SCM__SLAVE__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
SCM__SLAVE__TAG_FILTER: others
SCM__SLAVE__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
SCM__SLAVE__TARGET: /config/slave-file
command: ['shared-config-slave']
volumes_from:
- tests:rw
links:
- redis
hostname: slave-file
redis:
image: redis:8.10.3
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