Creating docker-compose.yml with nginx config via a new site.
This commit is contained in:
@@ -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:
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user