empty api server

This commit is contained in:
Jörn-Michael Miehe 2020-09-06 02:44:09 +02:00
parent 5681c917ea
commit d2adc9b776
4 changed files with 19 additions and 8 deletions

4
api/Dockerfile Normal file
View file

@ -0,0 +1,4 @@
FROM node:lts-alpine
LABEL maintainer="joern-michael.miehe@lenaisten.de"
CMD [ "tail", "-f", "/dev/null" ]

View file

@ -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;
@ -17,7 +17,7 @@ server {
proxy_pass http://ui; proxy_pass http://ui;
} }
# location /api/ { location /api/ {
# proxy_pass http://api; proxy_pass http://api;
# } }
} }

View file

@ -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