Skip to content

Commit 1ac40b4

Browse files
committed
fix: ui configuration in compose stack
1 parent 757917b commit 1ac40b4

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

compose/local/ui/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Node version should always match the version in `ui/.nvmrc`
22
FROM node:18
33
WORKDIR /app
4-
USER node
54
COPY package.json yarn.lock ./
65
RUN yarn install
7-
COPY . .
86
RUN ["git", "config", "--global", "--add", "safe.directory", "/app"]
97
ENV BROWSER=none
108
CMD ["yarn", "start", "--host", "0.0.0.0" , "--port", "4000"]

docker-compose.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,21 @@ services:
4343
env_file:
4444
- ./.envs/.local/.postgres
4545

46-
# ui:
47-
# image: ami_local_ui
48-
# build:
49-
# context: ./ui
50-
# dockerfile: ../compose/local/ui/Dockerfile
51-
# ports:
52-
# - "4000:4000"
53-
# volumes:
54-
# - ./.git:/app/.git:ro
55-
# - ./ui:/app
56-
# - /app/node_modules
57-
# depends_on:
58-
# - django
59-
# environment:
60-
# - CHOKIDAR_USEPOLLING=true
61-
# - API_PROXY_TARGET=http://django:8000
46+
ui:
47+
image: ami_local_ui
48+
build:
49+
context: ./ui
50+
dockerfile: ../compose/local/ui/Dockerfile
51+
ports:
52+
- "4000:4000"
53+
volumes:
54+
- ./.git:/app/.git:ro
55+
- ./ui:/app
56+
depends_on:
57+
- django
58+
environment:
59+
- CHOKIDAR_USEPOLLING=true
60+
- API_PROXY_TARGET=http://django:8000
6261

6362
docs:
6463
image: ami_local_docs

0 commit comments

Comments
 (0)