Rename app to api

This commit is contained in:
Maksym Pavlenko
2019-03-06 22:19:59 -08:00
parent 621c0e82cf
commit 072dccff4e
8 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
SUBDIRS := cmd/app cmd/nginx cmd/ytdl
SUBDIRS := cmd/api cmd/nginx cmd/ytdl
GOLANGCI := ./bin/golangci-lint
.PHONY: push
+1
View File
@@ -0,0 +1 @@
api
+2 -2
View File
@@ -1,4 +1,4 @@
FROM alpine
RUN apk --update --no-cache add ca-certificates
COPY ./server /server
ENTRYPOINT ["/server"]
COPY ./api /api
ENTRYPOINT ["/api"]
+3 -3
View File
@@ -1,4 +1,4 @@
OUT := server
OUT := api
SRC := $(wildcard *.go)
build: $(SRC)
@@ -6,8 +6,8 @@ build: $(SRC)
.PHONY: push
push: build
docker build -t mxpv/podsync .
docker push mxpv/podsync
docker build -t mxpv/podsync_api .
docker push mxpv/podsync_api
.PHONY: clean
clean:
View File
-1
View File
@@ -1 +0,0 @@
server
+1 -1
View File
@@ -3,7 +3,7 @@ upstream worker {
}
upstream backend {
server app:5001;
server api:5001;
}
proxy_cache_path /tmp/nginx levels=1:2 keys_zone=feeds_cache:25m max_size=1g inactive=30m use_temp_path=off;
+4 -4
View File
@@ -1,9 +1,9 @@
version: '2.1'
services:
app:
image: mxpv/podsync
container_name: app
api:
image: mxpv/podsync_api
container_name: api
restart: always
ports:
- 5001
@@ -35,7 +35,7 @@ services:
ports:
- 5002
environment:
- METADATA_URL=http://app:5001/api/metadata/{feed_id}
- METADATA_URL=http://api:5001/api/metadata/{feed_id}
nginx:
image: mxpv/nginx:latest
container_name: nginx