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

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

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;
@ -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;
# } }
} }

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