Clean up compose
This commit is contained in:
@ -11,8 +11,8 @@ RUN npm ci
|
||||
FROM deps AS develop
|
||||
WORKDIR /app
|
||||
COPY dev-entrypoint.sh /entrypoint.sh
|
||||
COPY .env.example /app/.env
|
||||
RUN chmod +x /entrypoint.sh
|
||||
RUN cat /entrypoint.sh
|
||||
ENV NODE_ENV=development
|
||||
EXPOSE 3333
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
|
@ -23,14 +23,10 @@ services:
|
||||
image: backend:latest
|
||||
build:
|
||||
context: ./backend
|
||||
volumes:
|
||||
- backend_node_modules:/backend/node_modules
|
||||
- ./backend/:/backend
|
||||
labels:
|
||||
- "traefik.http.middlewares.strip-api-prefix.stripprefix.prefixes=/api"
|
||||
- "traefik.http.routers.backend.rule=Host(`app.docker.localhost`) && PathPrefix(`/api`)"
|
||||
- "traefik.http.routers.backend.middlewares=strip-api-prefix@docker"
|
||||
|
||||
env_file:
|
||||
- ./backend/.env
|
||||
depends_on:
|
||||
|
Reference in New Issue
Block a user