generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #597 from hackforla/feat/fix-onboarding
Feat/fix onboarding
- Loading branch information
Showing
10 changed files
with
82 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,58 @@ | ||
version: "3.9" # Use the version of Docker Compose that you need | ||
|
||
services: | ||
db: | ||
image: postgres:16 # Use the latest PostgreSQL image | ||
volumes: | ||
- ./data/db:/var/lib/postgresql/data | ||
environment: | ||
- POSTGRES_USER=yourusername # Set the username for the PostgreSQL database | ||
- POSTGRES_PASSWORD=yourpassword # Set the password for the PostgreSQL database | ||
- POSTGRES_DB=yourdatabase # Set the name of the database | ||
ports: | ||
- "5432:5432" # Map the PostgreSQL port to the host | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready -U yourusername -d yourdatabase"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
backend: | ||
build: ./backend | ||
command: python manage.py runserver 0.0.0.0:8000 | ||
restart: on-failure:10 | ||
volumes: | ||
- .:/code | ||
ports: | ||
- "8000:8000" | ||
depends_on: | ||
db: | ||
condition: service_healthy | ||
name: civic-tech-jobs | ||
|
||
services: | ||
pgdb: | ||
image: postgres:16 | ||
container_name: pgdb | ||
volumes: | ||
- postgres_data:/lib/postgresql/data | ||
env_file: | ||
- dev/dev.env | ||
ports: | ||
- "5432:5432" | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
|
||
django: | ||
build: | ||
context: backend | ||
dockerfile: ../dev/django.dockerfile | ||
container_name: django | ||
command: > | ||
sh -c "python manage.py makemigrations && | ||
python manage.py migrate && | ||
python manage.py runserver 0.0.0.0:8000 && | ||
python manage.py generateschema --file openapi-schema.yml" | ||
ports: | ||
- "8000:8000" | ||
env_file: | ||
- dev/dev.env | ||
depends_on: | ||
pgdb: | ||
condition: service_healthy | ||
develop: | ||
watch: | ||
- action: sync | ||
path: ./backend | ||
target: /usr/src/app | ||
|
||
vite: | ||
build: | ||
context: frontend | ||
dockerfile: ../dev/vite.Dockerfile | ||
container_name: vite | ||
env_file: | ||
- dev/dev.env | ||
ports: | ||
- "5175:5175" | ||
develop: | ||
watch: | ||
- action: sync | ||
path: ./frontend | ||
target: /usr/src/app | ||
|
||
volumes: | ||
postgres_data: {} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.