forked from RENCI-NRIG/cilogon-vouch-proxy-example
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.04 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
version: '3.8'
services:
nginx:
image: library/nginx:1
container_name: ex-nginx
# depends_on:
# - flask-app
# - react-app
ports:
- 8080:80
- 8443:443
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/index.html:/usr/share/nginx/html/index.html
- ./ssl:/etc/ssl
restart: unless-stopped
flask-app:
build:
context: ./flask-app
dockerfile: Dockerfile
container_name: ex-flask-app
# depends_on:
# - vouch-proxy
ports:
- 5000:5000
restart: unless-stopped
react-app:
build:
context: ./react-app
dockerfile: Dockerfile
container_name: ex-react-app
# depends_on:
# - vouch-proxy
ports:
- 5050:5000
- 3000:3000
stdin_open: true
restart: unless-stopped
vouch-proxy:
container_name: ex-vouch
image: voucher/vouch-proxy
ports:
- 9090:9090
volumes:
- ./vouch:/config
- ./data:/data
restart: unless-stopped