Skip to content

Commit

Permalink
few changes :D
Browse files Browse the repository at this point in the history
  • Loading branch information
YazeedAlKhalaf committed Oct 16, 2024
1 parent 36c70ca commit 5d1c9e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ POSTGRES_PORT=5432
POSTGRES_DB=postgres
POSTGRES_USER=root
POSTGRES_PASSWORD=password
FALAK_DOMAIN=falak.localhost
FALAK_HOST=falak.localhost
# Constants (consider not changing these)
FALAK_PORT=50064
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
postgres-data/
8 changes: 6 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
timeout: 5s
retries: 5
volumes:
- ./postgres-data:/var/lib/postgresql/data
- postgres_data:/var/lib/postgresql/data

falak:
build:
Expand All @@ -44,11 +44,15 @@ services:
DB_PORT: ${POSTGRES_PORT}
DB_NAME: ${POSTGRES_DB}
DB_SSL_MODE: disable
PORT: ${FALAK_PORT}
depends_on:
postgresdb:
condition: service_healthy
labels:
- "traefik.enable=true"
- "traefik.http.routers.falak.rule=Host(`${FALAK_DOMAIN}`)"
- "traefik.http.routers.falak.rule=Host(`${FALAK_HOST}`)"
- "traefik.http.services.falak.loadbalancer.server.port=${FALAK_PORT}"
- "traefik.http.services.falak.loadbalancer.server.scheme=h2c"

volumes:
postgres_data:

0 comments on commit 5d1c9e2

Please sign in to comment.