-
Notifications
You must be signed in to change notification settings - Fork 46
/
docker-compose.yaml
89 lines (85 loc) · 3.26 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
services:
db:
image: camptocamp/geomapfish-test-db
environment:
- POSTGRES_USER=www-data
- POSTGRES_PASSWORD=www-data
- POSTGRES_DB=geomapfish_tests
qgisserver-tests:
image: camptocamp/geomapfish-qgisserver-tests
volumes:
- ./docker/qgisserver/geomapfish_qgisserver/:/var/www/plugins/geomapfish_qgisserver/
- ./docker/qgisserver/tests:/src/tests/
- ./commons/c2cgeoportal_commons/:/opt/c2cgeoportal/commons/c2cgeoportal_commons/
environment:
- PGHOST=db
- PGPORT=5432
- PGUSER=www-data
- PGPASSWORD=www-data
- PGDATABASE=geomapfish_tests
- PGSCHEMA=main
- PGSCHEMA_STATIC=main_static
- QGIS_PROJECT_FILE=/etc/qgisserver/project.qgs
mapserver:
image: camptocamp/geomapfish-test-mapserver
user: www-data
environment:
- MS_MAPFILE=/etc/mapserver/mapserver.map
- PGHOST=db
- PGPORT=5432
- PGUSER=www-data
- PGPASSWORD=www-data
- PGDATABASE=geomapfish_tests
- 'MAPSERVER_DATA_SUBSELECT=SELECT ST_Collect(ra.area)
FROM main.restrictionarea AS ra, main.role_restrictionarea AS rra,
main.layer_restrictionarea AS lra, main.treeitem AS la
WHERE rra.role_id in (%role_ids%) AND rra.restrictionarea_id = ra.id
AND lra.restrictionarea_id = ra.id AND lra.layer_id = la.id AND la.name = '
- 'MAPSERVER_DATA_NOAREA_SUBSELECT=SELECT rra.role_id
FROM main.restrictionarea AS ra, main.role_restrictionarea AS rra,
main.layer_restrictionarea AS lra, main.treeitem AS la
WHERE rra.restrictionarea_id = ra.id AND lra.restrictionarea_id = ra.id
AND lra.layer_id = la.id AND la.name = '
- 'MAPSERVER_JOIN_TABLES=main.restrictionarea AS ra, main.role_restrictionarea AS rra,
main.layer_restrictionarea AS lra, main.treeitem AS la'
- 'MAPSERVER_JOIN_WHERE=rra.role_id in (%role_ids%) AND rra.restrictionarea_id = ra.id AND
lra.restrictionarea_id = ra.id AND lra.layer_id = la.id AND la.name = '
tilecloudchain:
image: camptocamp/tilecloud-chain:1.22
user: www-data
restart: unless-stopped
environment:
- TILEGENERATION_CONFIGFILE=/etc/tilegeneration/config.yaml
- TILECLOUD_CHAIN_SESSION_SECRET=secret
- TILECLOUD_CHAIN_SESSION_SALT=salt
volumes:
- ./docker/test-tilecloudchain:/etc/tilegeneration
tests:
image: camptocamp/geomapfish-tools
volumes:
- ./commons/c2cgeoportal_commons:/opt/c2cgeoportal/commons/c2cgeoportal_commons
- ./geoportal/c2cgeoportal_geoportal:/opt/c2cgeoportal/geoportal/c2cgeoportal_geoportal
- ./admin/c2cgeoportal_admin:/opt/c2cgeoportal/admin/c2cgeoportal_admin
- ./admin/tests:/opt/c2cgeoportal/admin/tests
- ./commons/tests:/opt/c2cgeoportal/commons/tests
- ./geoportal/tests:/opt/c2cgeoportal/geoportal/tests
environment:
- PGHOST=db
- PGPORT=5432
- PGUSER=www-data
- PGPASSWORD=www-data
- PGDATABASE=geomapfish_tests
- PGSSLMODE=disable
- CI=true
- TEST=true
- EVALUATE_APP=false
- EVALUATE_NGEO_TMPL=false
- EVALUATE_NGEO_JS=false
- EVALUATE_NGEO_CSS=false
- EVALUATE_NGEO_HTML=false
entrypoint:
- /usr/bin/eval-templates
command:
- tail
- -f
- /dev/null