Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/api/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV GO111MODULE on
WORKDIR /go/src/app

RUN apk update && \
apk add git
apk add --no-cache git

# Copy go.mod and go.sum
COPY app/go.* ./
Expand Down
16 changes: 16 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,21 @@ services:
volume:
nocopy: true

proxy:
image: nginx:1.25.1
container_name: proxy
volumes:
- type: bind
source: ./nginx/nginx.conf
target: /etc/nginx/conf.d/default.conf
read_only: true
ports:
- target: 80
published: 80
protocol: TCP
mode: host
depends_on:
- api

volumes:
db-data:
8 changes: 8 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://api:8080;
proxy_http_version 1.1;
}
}