added backend to compose
This commit is contained in:
parent
c0fa87e585
commit
10314c2997
@ -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
|
||||
|
13
dev/containers/backend/Containerfile
Normal file
13
dev/containers/backend/Containerfile
Normal 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"]
|
||||
|
@ -23,6 +23,7 @@
|
||||
"react-app/jest"
|
||||
]
|
||||
},
|
||||
"proxy": "http://backend:7340",
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
|
Loading…
x
Reference in New Issue
Block a user