-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
115 lines (105 loc) · 2.92 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
version: "3"
services:
certs:
image: psmiraglia/spid-compliant-certificates
volumes:
- certs-volume:/tmp/certs
entrypoint: spid-compliant-certificates generator --key-size 3072 --common-name "A.C.M.E" --days 365 --entity-id https://spid.acme.it --locality-name Roma --org-id "PA:IT-c_h501" --org-name "A Company Making Everything" --sector public --key-out /tmp/certs/private.key --crt-out /tmp/certs/public.cert
taiga-gateway:
image: nginx:1.19-alpine
ports:
- "80:80"
- "443:443"
volumes:
- taiga-static-data:/taiga/static
- taiga-media-data:/taiga/media
- ./docker/gateway/taiga.conf:/etc/nginx/conf.d/default.conf
- ./docker/gateway/example.key:/etc/nginx/certs/certificate.key
- ./docker/gateway/example.crt:/etc/nginx/certs/certificate.crt
depends_on:
- taiga-front
- taiga-back
networks:
- taiga
taiga-front:
build:
context: .
dockerfile: ./docker/front/Dockerfile
depends_on:
- taiga-back
networks:
- taiga
taiga-back:
build:
context: .
dockerfile: ./docker/back/Dockerfile
expose:
- 8000
ports:
- "8000:8000"
depends_on:
- taiga-db
- certs
environment:
- DJANGO_SETTINGS_MODULE=settings.config
- DB_HOST=taiga-db
- DB_NAME=taiga
- DB_USER=postgres
- DB_PASS=postgres
- SPID_SAML_CHECK_IDP_ACTIVE=True
- SPID_DEMO_IDP_ACTIVE=True
- SPID_BASE_URL=https://localhost
volumes:
- taiga-static-data:/taiga-back/static
- taiga-media-data:/taiga-back/media
- certs-volume:/certs
networks:
- taiga
taiga-db:
image: postgres:12.3
expose:
- 5432
command: "-c logging_collector=on"
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U geocommunity"]
interval: 10s
timeout: 5s
retries: 5
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=taiga
- POSTGRES_PORT=5432
- PGDATA=/var/lib/postgresql/data
networks:
- taiga
volumes:
- taigadbdata:/var/lib/postgresql/data
taiga-protected:
image: taigaio/taiga-protected:6.5.0
ports:
- "8003:8003"
environment:
MAX_AGE: 300
SECRET_KEY: "aw3+t2r(8(0kkrhg8)gx6i96v5^kv%6cfep9wxfom0%7dy0m9e"
networks:
- taiga
spid-saml-check:
image: italia/spid-saml-check:v.1.8.1
ports:
- "8080:8080"
networks:
- taiga
volumes:
- "./docker/spid-saml-check-config/idp.json:/spid-saml-check/spid-validator/config/idp.json:ro"
- "./docker/spid-saml-check-config/idp_demo.json:/spid-saml-check/spid-validator/config/idp_demo.json:ro"
- "./docker/spid-saml-check-config/server.json:/spid-saml-check/spid-validator/config/server.json:ro"
volumes:
taigadbdata:
taiga-static-data:
taiga-media-data:
certs-volume:
networks:
taiga: