Skip to content

Commit

Permalink
ci: remove env in compose
Browse files Browse the repository at this point in the history
  • Loading branch information
fieztazica committed Jun 9, 2024
1 parent 11e2c42 commit 6f0e6dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ COPY --from=builder /usr/src/app/apps/api/node_modules ./apps/api/node_modules
COPY --from=builder /usr/src/app/apps/api/public ./apps/api/public
COPY --from=builder /usr/src/app/apps/api/views ./apps/api/views
COPY --from=builder /usr/src/app/apps/api/prisma ./apps/api/prisma
COPY --from=builder /usr/src/app/apps/api/*.env ./apps/api
COPY --from=builder /usr/src/app/apps/api/.env* ./apps/api

# Expose the port the app runs on
EXPOSE 7000
Expand Down
11 changes: 1 addition & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ services:
container_name: rookie-store-api
ports:
- "7000:7000"
env_file:
- .env
# environment:
# DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
# REDIS_URL: redis://rookie-store-redis:${REDIS_PORT}
depends_on:
- postgres
- redis
Expand All @@ -49,11 +44,7 @@ services:
dockerfile: apps/web/Dockerfile
container_name: rookie-store-web
ports:
- "${WEB_PORT}:3000"
env_file:
- .env
# environment:
# API_URL: http://api:${API_PORT}
- "3000:3000"
depends_on:
- api
networks:
Expand Down

0 comments on commit 6f0e6dd

Please sign in to comment.