Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ README.md
build
node_modules
package
scripts/.venv
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ BODY_SIZE_LIMIT=20M # for those hi res pictures
GITHUB_TOKEN=github_pat_X_X

PUBLIC_APP_URL=http://localhost:3000

SCHEDULE_SERVICE_URL=http://localhost:8000
13 changes: 13 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ services:
retries: 5
networks:
- app-network
ports:
- 6379:6379

lessons-service:
build:
Expand All @@ -47,6 +49,14 @@ services:
networks:
- app-network

schedule-service:
build:
context: ./schedule-service
dockerfile: Dockerfile
restart: on-failure:5
networks:
- app-network

app:
build: .
restart: on-failure:5
Expand All @@ -56,13 +66,16 @@ services:
DATABASE_URL: postgresql://postgres:postgres@db:5432/hacksu
REDIS_URL: redis://redis:6379
NODE_ENV: production
SCHEDULE_SERVICE_URL: http://schedule-service:8000
volumes:
- uploads:/app/static/uploads
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
schedule-service:
condition: service_started
networks:
- app-network

Expand Down
Loading