Skip to content

Commit

Permalink
comment out pgdata volume for docker-compose.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Aug 30, 2024
1 parent 85e49ff commit 98e8593
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ services:
PGUSER: $PGUSER
POSTGRES_USER: $PGUSER
POSTGRES_PASSWORD: $PGPASSWORD
PGDATA: /var/lib/postgresql/data/pgdata
# PGDATA: /var/lib/postgresql/data/pgdata
restart: always
networks:
- backend_network
volumes:
- pgdata:/var/lib/postgresql/data
# volumes:
# - pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${PGUSER}"]
interval: 1s
Expand All @@ -38,8 +38,8 @@ services:
- backend_network
command: ["/bin/sh", "./setup-database.sh"]

volumes:
pgdata:
# volumes:
# pgdata:
networks:
backend_network:
driver: bridge

0 comments on commit 98e8593

Please sign in to comment.