Creating docker-compose.yml with nginx config via a new site.

This commit is contained in:
Vern Burton
2020-03-22 21:28:58 -05:00
parent b0fbbeb3a3
commit e3843a90ce
2 changed files with 30 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
version: '3.7'
services:
app:
volumes:
- app_dir:/app/packages/app/build
build: .
web:
ports:
- 8080:80
volumes:
- ./docker/backstage.conf:/etc/nginx/conf.d/backstage.conf
- type: volume
source: app_dir
target: /usr/share/backstage/html
volume:
nocopy: true
image: nginx:mainline
volumes:
app_dir:
+9
View File
@@ -0,0 +1,9 @@
server {
listen 80 default_server;
root /usr/share/backstage/html;
server_name backstage.local;
index index.html index.htm;
location / {
try_files $uri /index.html;
}
}