Skip to content

Commit

Permalink
Increase wait time for containers to be ready and enable max connecti…
Browse files Browse the repository at this point in the history
…ons in PostgreSQL configuration
  • Loading branch information
Kseen715 committed Dec 10, 2024
1 parent e1e6bd4 commit 031444d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-commit-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Build and run containers
run: |
docker compose -f docker-compose-build.yml up -d
sleep 20 # Wait for containers to be ready
sleep 60 # Wait for containers to be ready
- name: Run tests
run: docker compose -f docker-compose-build.yml exec -T django pytest
2 changes: 1 addition & 1 deletion .github/workflows/on-commit-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ jobs:
- name: Build and run containers
run: |
docker compose -f docker-compose-build.yml up -d
sleep 20 # Wait for containers to be ready
sleep 60 # Wait for containers to be ready
- name: Run tests
run: docker compose -f docker-compose-build.yml exec -T django pytest
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PGDATA: "/var/lib/postgresql/data/pgdata"
# POSTGRES_INITDB_ARGS: "--max-connections=1500"
POSTGRES_INITDB_ARGS: "--max-connections=1500"
POSTGRES_MAX_CONNECTIONS: "1500"
volumes:
- db-data:/docker-entrypoint-initdb.d
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PGDATA: "/var/lib/postgresql/data/pgdata"
# POSTGRES_INITDB_ARGS: "--max-connections=1500"
POSTGRES_INITDB_ARGS: "--max-connections=1500"
POSTGRES_MAX_CONNECTIONS: "1500"
volumes:
- db-data:/docker-entrypoint-initdb.d
Expand Down

0 comments on commit 031444d

Please sign in to comment.