empty api server
This commit is contained in:
parent
5681c917ea
commit
d2adc9b776
4 changed files with 19 additions and 8 deletions
4
api/Dockerfile
Normal file
4
api/Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
FROM node:lts-alpine
|
||||
LABEL maintainer="joern-michael.miehe@lenaisten.de"
|
||||
|
||||
CMD [ "tail", "-f", "/dev/null" ]
|
|
@ -2,9 +2,9 @@ upstream ui {
|
|||
server ui:8080;
|
||||
}
|
||||
|
||||
# upstream api {
|
||||
# server api:3000;
|
||||
# }
|
||||
upstream api {
|
||||
server api:3000;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
|
@ -17,7 +17,7 @@ server {
|
|||
proxy_pass http://ui;
|
||||
}
|
||||
|
||||
# location /api/ {
|
||||
# proxy_pass http://api;
|
||||
# }
|
||||
location /api/ {
|
||||
proxy_pass http://api;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,8 +13,15 @@ services:
|
|||
ports:
|
||||
- 8000:8000
|
||||
|
||||
api:
|
||||
build: api
|
||||
restart: 'no'
|
||||
|
||||
dev-proxy:
|
||||
build: dev-proxy
|
||||
restart: 'no'
|
||||
ports:
|
||||
- 8080:80
|
||||
depends_on:
|
||||
- ui
|
||||
- api
|
||||
|
|
Loading…
Reference in a new issue