-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose-prod.yml
57 lines (50 loc) · 2.06 KB
/
docker-compose-prod.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: '2'
services:
rcgech:
image: blockchainpartnerhub/geneva_horodateur_rcgech:1.0.1
environment:
- WS_URI=https://rinkeby.infura.io/v3/afeacc980c634655875d915ed65cb0e4
- PRIVATE_KEY=18030537DBDD38D0764947D40BED98FC4D2A21AF82765A7DE7B13D2E4076773C
- DB_DSN=host=postgres user=tsUhfmkMfY dbname=rcgehorodatage sslmode=disable password=lrwOuiz4gH
- LOCKED_ADDR=0x533a245f03a1a46cacb933a3beef752fd8ff45c3
- ERROR_THRESHOLD=0.1
- WARNING_THRESHOLD=1
links:
- postgres
webapp:
image: blockchainpartnerhub/geneva_horodateur_webapp:1.0.3
ports:
- "0.0.0.0:8001:8080"
environment:
- KEY_NAME=myservice # The .cert and .key must have the same name
- IDP_METADATA=http://ec2-18-184-234-216.eu-central-1.compute.amazonaws.com/ssorec.geneveid.ch_dgsi_blockchain.xml #Public URL where IdP can be found
- SP_URL=http://ec2-18-184-234-216.eu-central-1.compute.amazonaws.com:8001 # URL of the service provider
- API_HOST=rcgech:8090 # API host, is equal to the <api container name>:<port>
- MAIN_URI=ctihorodateur # URI used as a prefix in the webapp
- VIRTUAL_HOST=example.com
- CSRF_TIME_LIMIT=360
working_dir: /app
command: /app/webapp
volumes:
- "./myservice.cert:/app/myservice.cert"
- "./myservice.key:/app/myservice.key"
postgres:
image: postgres:9.5
user: postgres
environment:
- POSTGRES_USER=tsUhfmkMfY
- POSTGRES_PASSWORD=lrwOuiz4gH
- POSTGRES_DB=rcgehorodatage
# SSL Let's Encrypt config
nginx-proxy:
image: blockchainpartnerhub/geneva_nginx_proxy:1.0
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /path/to/certs/:/etc/nginx/certs:ro # Edit path to the right certs folder, name should be example.com.crt and example.com.key
- /etc/nginx/vhost.d
- /usr/share/nginx/html
# Add these env vars to services that need to be reached from the Internet
# VIRTUAL_HOST=example.com ; LETSENCRYPT_HOST=example.com ; LETSENCRYPT_EMAIL= foo@example.com