-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
101 lines (93 loc) · 2.25 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
101 lines (93 loc) · 2.25 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
---
volumes:
hazardsets:
postgresql_data:
puppeteer_tmp:
services:
db:
image: camptocamp/postgres:17-postgis-3
volumes:
- ./docker/testdb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- postgresql_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${PGPASSWORD_PUBLIC}
POSTGRES_DB: ${PGDATABASE_PUBLIC}
POSTGRES_USER: ${PGUSER_PUBLIC}
thinkhazard:
image: camptocamp/thinkhazard
build:
context: .
target: app
args:
TX_TOKEN: ${TX_TOKEN}
TX_BRANCH: ${TX_BRANCH}
user: www-data
restart: unless-stopped
depends_on:
- db
- s3
volumes:
- hazardsets:/tmp/hazardsets
environment: &env
- INI_FILE
- TX_TOKEN
- PGHOST
- PGPORT
- PGUSER_PUBLIC
- PGPASSWORD_PUBLIC
- PGDATABASE_PUBLIC
- PGUSER_ADMIN
- PGPASSWORD_ADMIN
- PGDATABASE_ADMIN
- AWS_ENDPOINT_URL
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_BUCKET_NAME
- GEONODE_URL
- GEONODE_USERNAME
- GEONODE_API_KEY
- ANALYTICS
- BROKER_URL
- HTPASSWORDS
- PUPPETEER_URL
- PROTECT_PUBLIC_SITE
- TX_BRANCH=dev
ports:
- 8080:8080
taskrunner:
image: camptocamp/thinkhazard
user: www-data
restart: unless-stopped
depends_on:
- db
- s3
volumes:
- hazardsets:/tmp/hazardsets
environment: *env
command: 'celery -A thinkhazard.celery worker -l info'
s3:
image: andrewgaul/s3proxy
environment:
- S3PROXY_ENDPOINT=http://0.0.0.0:9000
- S3PROXY_AUTHORIZATION=aws-v2-or-v4
- S3PROXY_IDENTITY=${AWS_ACCESS_KEY_ID}
- S3PROXY_CREDENTIAL=${AWS_SECRET_ACCESS_KEY}
- JCLOUDS_PROVIDER=filesystem
- JCLOUDS_FILESYSTEM_BASEDIR=/data
- AWS_BUCKET_NAME
entrypoint: ["sh", "-c", 'mkdir -p "/data/$${AWS_BUCKET_NAME}" && exec /opt/s3proxy/run-docker-container.sh']
ports:
- "9000:9000"
redis:
image: redis
ports:
- "6379:6379"
puppeteer:
image: camptocamp/thinkhazard-puppeteer
build: ./docker/puppeteer
user: 1000:1000
read_only: true
environment:
- BASE_URL=http://thinkhazard:8080
volumes:
- puppeteer_tmp:/tmp