added backend to compose

This commit is contained in:
Annika Hannig 2022-03-15 18:11:27 +01:00
parent c0fa87e585
commit 10314c2997
3 changed files with 23 additions and 1 deletions

View File

@ -18,7 +18,15 @@ services:
volumes:
- ../pkg/ui:/ui
ports:
- 8072:3000
- 8040:3000
command:
- start
backend:
build:
dockerfile: dev/containers/backend/Containerfile
context: ../.
volumes:
- ../.:/src/alice-lg
ports:
- 7340:7340

View File

@ -0,0 +1,13 @@
FROM golang:1.17
WORKDIR /src/alice-lg
ADD go.mod .
ADD go.sum .
RUN go mod download
WORKDIR /src/alice-lg/cmd/alice-lg
CMD ["go", "run", ".", "-config", "../../etc/alice-lg/alice.conf"]

View File

@ -23,6 +23,7 @@
"react-app/jest"
]
},
"proxy": "http://backend:7340",
"browserslist": {
"production": [
">0.2%",