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" ]
|
|
@ -1,4 +1,4 @@
|
||||||
FROM nginx:stable-alpine
|
FROM nginx:stable-alpine
|
||||||
LABEL maintainer="joern-michael.miehe@lenaisten.de"
|
LABEL maintainer="joern-michael.miehe@lenaisten.de"
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
|
@ -2,9 +2,9 @@ upstream ui {
|
||||||
server ui:8080;
|
server ui:8080;
|
||||||
}
|
}
|
||||||
|
|
||||||
# upstream api {
|
upstream api {
|
||||||
# server api:3000;
|
server api:3000;
|
||||||
# }
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
|
@ -16,8 +16,8 @@ server {
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://ui;
|
proxy_pass http://ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
# location /api/ {
|
location /api/ {
|
||||||
# proxy_pass http://api;
|
proxy_pass http://api;
|
||||||
# }
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,8 +13,15 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
|
|
||||||
|
api:
|
||||||
|
build: api
|
||||||
|
restart: 'no'
|
||||||
|
|
||||||
dev-proxy:
|
dev-proxy:
|
||||||
build: dev-proxy
|
build: dev-proxy
|
||||||
restart: 'no'
|
restart: 'no'
|
||||||
ports:
|
ports:
|
||||||
- 8080:80
|
- 8080:80
|
||||||
|
depends_on:
|
||||||
|
- ui
|
||||||
|
- api
|
||||||
|
|
Loading…
Reference in a new issue