forked from digital-land/digital-land.info
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.security.yml
57 lines (52 loc) · 1.53 KB
/
docker-compose.security.yml
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
version: "3.8"
services:
web:
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
image: public.ecr.aws/l6z6v3j6/digital-land-platform:${DOCKER_APPLICATION_TAG-latest}
environment:
ENVIRONMENT: production
S3_HOISTED_BUCKET: https://digital-land-production-collection-dataset-hoisted.s3.eu-west-2.amazonaws.com
S3_COLLECTION_BUCKET: https://digital-land-production-collection-dataset.s3.eu-west-2.amazonaws.com
DATABASE_URL: postgres://postgres:postgres@db/digital_land
DATASETTE_URL: https://datasette.digital-land.info
PORT: 8000
WEB_CONCURRENCY: 1
DATA_FILE_URL: https://data.digital-land.info
healthcheck:
test: curl -v -i -f http://localhost:8000
interval: 1s
timeout: 3s
retries: 60
db:
image: postgis/postgis:13-master
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- ${DB_HOST_PORT-5432:}5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=digital_land
healthcheck:
test: pg_isready -U postgres
interval: 10s
timeout: 5s
retries: 5
zap:
image: owasp/zap2docker-stable:${ZAP_VERSION-2.11.1}
command: bash -c "zap.sh -cmd -addonupdate; zap.sh -cmd -autorun /zap/wrk/zap.yaml"
volumes:
- .:/zap/wrk
- ./zap-working-dir/zap.log:/home/zap/.ZAP/zap.log
depends_on:
web:
condition: service_healthy
volumes:
postgres_data:
networks:
default:
name: digital-land