-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
78 lines (75 loc) · 2.36 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
78 lines (75 loc) · 2.36 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
services:
db:
image: camptocamp/postgres:18-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
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__AUTH__TEST__USERNAME: test
C2C__HTTP: 'true'
C2C__PROMETHEUS__PORT: 9110
GHCI__TEST__APP_NAME: test
GHCI__SQLALCHEMY__URL: postgresql://postgresql:postgresql@db/tests
GHCI__SQLALCHEMY__POOL_RECYCLE: '3600'
GHCI__SQLALCHEMY__POOL_SIZE: '10'
GHCI__SQLALCHEMY__MAX_OVERFLOW: '20'
GHCI__SESSION_SECRET: '1234'
GHCI__CONFIGURATION: /etc/ghci/config.yaml
GHCI__SERVICE_URL: http://localhost:8080/
GHCI__APPLICATION__TEST__GITHUB_APP_ID: ${GHCI_TEST_GITHUB_APP_ID}
GHCI__APPLICATION__TEST__GITHUB_APP_PRIVATE_KEY: ${GHCI_TEST_GITHUB_APP_PRIVATE_KEY}
GHCI__APPLICATION__TEST__GITHUB_APP_URL: https://github.com/apps/test
GHCI__APPLICATION__TEST__TITLE: Main application
GHCI__APPLICATION__TEST__DESCRIPTION: This is the main application
GHCI__APPLICATION__TEST__MODULES: test
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
GHCI__PROCESS_QUEUE__MAX_WORKERS: 2
GHCI__LOG_LEVEL: DEBUG
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