-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.docker-compose.yml
45 lines (45 loc) · 1.27 KB
/
example.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
version: "2"
services:
db:
image: postgres
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ./data:/var/lib/postgresql/data
flask-app:
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
links:
- db:db
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_DB_HOST=${POSTGRES_DB_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- DB_ENCRYPTION_FILE=${DB_ENCRYPTION_FILE}
- ORCID_SERVER
volumes:
- ./orcidflask/saml:/opt/orcid_integration/orcidflask/saml
- ./config.py:/opt/orcid_integration/config.py
- ./orcidflask/db:/opt/orcid_integration/orcidflask/db
#- .:/opt/orcid_integration
restart: always
nginx-proxy:
image: nginxproxy/nginx-proxy:1.5
environment:
- LOG_JSON=true
ports:
- "443:443"
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
# Note that the nginxproxy image require cert & key to reside in the same directory
# And to follow certain naming conventions
- /etc/ssl/certs:/etc/nginx/certs
restart: always