forked from Einsteinish/Docker-compose-Nginx-Reverse-Proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
23 lines (20 loc) · 728 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
23 lines (20 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: '3'
# In this example, it is expected that all of the configuration mapping done
# here with volume overrides, would instead use config maps in an openshift
# template implementation.
services:
reverseproxy:
image: nginx:alpine
ports:
- 80:80
volumes:
- ./configmap/default.conf:/etc/nginx/conf.d/default.conf
- ./configmap/reverseproxy.html:/usr/share/nginx/html/index.html
server-a:
image: nginx:alpine
volumes:
- ./configmap/server-a.html:/usr/share/nginx/html/index.html
server-b:
image: nginx:alpine
volumes:
- ./configmap/server-b.html:/usr/share/nginx/html/index.html