-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
94 lines (90 loc) · 2.78 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
version: '2.2'
services:
db:
image: camptocamp/postgres:17-postgis-3
environment:
POSTGRES_USER: postgresql
POSTGRES_PASSWORD: postgresql
POSTGRES_DB: tests
volumes:
- ./docker/test-db:/docker-entrypoint-initdb.d:ro
application: &app
image: camptocamp/github-app-geo-project
build:
context: .
target: runner
environment:
&app-env # https://docs.pylonsproject.org/projects/pyramid/en/1.6-branch/narr/environment.html
PYRAMID_DEBUG_ALL: 'TRUE'
PYRAMID_RELOAD_ALL: 'TRUE'
PYRAMID_DEFAULT_LOCALE_NAME: en
LOG_LEVEL: DEBUG
C2CWSGIUTILS_LOG_LEVEL: INFO
SQL_LOG_LEVEL: INFO
GUNICORN_LOG_LEVEL: INFO
OTHER_LOG_LEVEL: INFO
C2C_AUTH_GITHUB_REPOSITORY: camptocamp/github-app-geo-project
C2C_AUTH_GITHUB_SECRET: '1234567890123456789'
C2C_AUTH_GITHUB_CLIENT_ID: '1234'
C2C_AUTH_GITHUB_CLIENT_SECRET: '1234'
C2C_PROMETHEUS_PORT: '9110'
TEST_USER: test
TEST_APPLICATION: test
SQLALCHEMY_URL: postgresql://postgresql:postgresql@db/tests
SQLALCHEMY_POOL_RECYCLE: '3600'
SQLALCHEMY_POOL_SIZE: '10'
SQLALCHEMY_MAX_OVERFLOW: '20'
SQLALCHEMY_SLAVE_URL: postgresql://postgresql:postgresql@db/tests
SQLALCHEMY_SLAVE_POOL_RECYCLE: '3600'
SQLALCHEMY_SLAVE_POOL_SIZE: '10'
SQLALCHEMY_SLAVE_MAX_OVERFLOW: '20'
GHCI_TEST_GITHUB_APP_ID: ${GHCI_TEST_GITHUB_APP_ID}
GHCI_TEST_GITHUB_APP_PRIVATE_KEY: ${GHCI_TEST_GITHUB_APP_PRIVATE_KEY}
GHCI_TEST_GITHUB_APP_URL: https://github.com/apps/test
GHCI_SESSION_SECRET: '1234'
GHCI_SESSION_SALT: '1234'
GHCI_CONFIGURATION: /etc/ghci/config.yaml
VISIBLE_ENTRY_POINT: /
PGHOST: db
PGUSER: postgresql
PGPASSWORD: postgresql
PGDATABASE: tests
PGPORT: '5432'
volumes:
- ./docker/test-app/config.yaml:/etc/ghci/config.yaml:ro
- ./github_app_geo_project:/app/github_app_geo_project:ro
links:
- db
ports:
- '9120:8080'
worker:
<<: *app
command:
- 'true'
environment:
<<: *app-env
HIGH_PRIORITY_THREAD_NUMBER: '0'
STATUS_PRIORITY_THREAD_NUMBER: '0'
DASHBOARD_PRIORITY_THREAD_NUMBER: '0'
STANDARD_PRIORITY_THREAD_NUMBER: '0'
CRON_PRIORITY_THREAD_NUMBER: '0'
LOWER_PRIORITY_THREAD_NUMBER: '2'
ports: []
volumes:
- ./docker/test-app/config.yaml:/etc/ghci/config.yaml:ro
- ./github_app_geo_project:/app/github_app_geo_project:ro
- ./results:/results:rw
tests:
image: camptocamp/github-app-geo-project-tests
build:
context: .
target: tests
environment: *app-env
command:
- sleep
- infinity
links:
- db
volumes:
- ./acceptance_tests:/acceptance_tests:rw
- ./results:/results:rw