mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-01-20 01:34:47 +00:00
Refactor folder structure
This commit is contained in:
parent
24d90a384d
commit
9b4d31f9da
|
|
@ -9,7 +9,7 @@ ENV GO111MODULE=on \
|
|||
|
||||
|
||||
WORKDIR /app
|
||||
COPY ./app/t2-stats /app
|
||||
COPY ./app/t2-stat-parser /app
|
||||
|
||||
# Copy and download dependency using go mod
|
||||
RUN go mod download
|
||||
|
|
@ -37,6 +37,6 @@ LABEL maintainer="Anthony Mineo <anthonymineo@gmail.com>"
|
|||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/main /app/main
|
||||
COPY ./app/t2-stats/start.sh /app/start.sh
|
||||
COPY ./app/t2-stat-parser/start.sh /app/start.sh
|
||||
|
||||
ENTRYPOINT ./start.sh
|
||||
|
|
@ -3,11 +3,11 @@ version: "3.7"
|
|||
# Service Definitions
|
||||
services:
|
||||
|
||||
app:
|
||||
parser:
|
||||
environment:
|
||||
DATABASE_URL: "postgres://dev:dev@db:5432/t2_stats"
|
||||
volumes:
|
||||
- ./app/t2-stats:/app
|
||||
- ./app/t2-stat-parser:/app
|
||||
|
||||
db:
|
||||
environment:
|
||||
|
|
|
|||
|
|
@ -17,10 +17,10 @@ services:
|
|||
- internal
|
||||
|
||||
|
||||
app:
|
||||
parser:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./build/go/Dockerfile
|
||||
dockerfile: ./build/go-t2-stat-parser/Dockerfile
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
|
|
|
|||
Loading…
Reference in a new issue