forked from reitermb/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (68 loc) · 1.7 KB
/
docker-compose.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
58
59
60
61
62
63
64
65
66
67
68
69
version: '3'
services:
db:
image: "postgres"
container_name: "postgres"
environment:
- POSTGRES_USER=pguser
- POSTGRES_PASSWORD=XXX
- POSTGRES_DB=mydb
ports:
- "5432:5432"
minio:
image: minio/minio
command: server /data
environment:
MINIO_ACCESS_KEY: "${MINIO_ACCESS_KEY}"
MINIO_SECRET_KEY: "${MINIO_SECRET_KEY}"
ports:
- "9000:9000"
miniobucket:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 ${MINIO_ACCESS_KEY} ${MINIO_SECRET_KEY};
/usr/bin/mc mb myminio/data;
exit 0;
"
tanf:
build: .
image: tanf:testing
volumes:
- ./tanf:/tanf
depends_on:
- db
- miniobucket
environment: &pythonenv
JWT_KEY: "XXXNOTAKEYXXX"
NOLOGINGOV: "true"
DEBUG: "true"
OIDC_RP_CLIENT_ID: "urn:gov:gsa:openidconnect.profiles:sp:sso:xxx:xxx"
SECRET_KEY: "XXXNOTAKEYXXX"
POSTGRES_USER: "pguser"
POSTGRES_PASSWORD: "XXX"
POSTGRES_DB: "mydb"
POSTGRES_PORT: "5432"
POSTGRES_HOST: "postgres"
AWS_ACCESS_KEY_ID: "${MINIO_ACCESS_KEY}"
AWS_SECRET_ACCESS_KEY: "${MINIO_SECRET_KEY}"
AWS_S3_REGION_NAME: "us-east-1"
BUCKETNAME: "data"
AWS_S3_ENDPOINT_URL: "http://minio:9000"
command: python3 manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"
backgroundprocessing:
image: tanf:testing
depends_on:
- db
- miniobucket
environment:
<<: *pythonenv
command: python3 manage.py process_tasks --log-std
restart: on-failure
zaproxy:
image: owasp/zap2docker-weekly
command: sleep 3600