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