Skip to content

Commit

Permalink
Merge branch 'main' of github.com:theowni/Damn-Vulnerable-RESTaurant-…
Browse files Browse the repository at this point in the history
…API-Game into main
  • Loading branch information
theowni committed Apr 10, 2024
2 parents 670f39a + e259bdb commit 2981c2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.7'

services:
web:
build: .
Expand All @@ -24,14 +22,17 @@ services:
db:
image: postgres:15.4-alpine
volumes:
- ./postgres_data:/var/lib/postgresql/data/
- pg_volume:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_DB=restaurant
- PGDATA=/var/lib/postgresql/data/pgdata
healthcheck:
test: ["CMD", "sh", "-c", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 5s
start_period: 5s
expose:
- 5432
volumes:
pg_volume:
2 changes: 1 addition & 1 deletion start_game.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

bash start_app.sh -d
./start_app.sh -d
docker compose exec web python3 game.py

0 comments on commit 2981c2b

Please sign in to comment.