Skip to content

Commit

Permalink
update docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
JwanKhalaf committed Nov 27, 2024
1 parent 90a65a3 commit 7b79545
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,36 @@ services:
- ./variables.env
depends_on:
- database
networks:
- bejebeje_network
container_name: bejebeje-mvc

database:
image: postgres:12.4
image: postgres:16.3
ports:
- "8002:5432"
volumes:
- data-volume:/var/lib/postgresql/data
- ./data/postgresql:/var/lib/postgresql/data
env_file:
- ./variables.env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
- bejebeje_network
container_name: bejebeje-database

volumes:
data-volume:
driver: local
driver_opts:
o: bind
type: none
device: ./data/postgresql

networks:
bejebeje_network:
driver: bridge

0 comments on commit 7b79545

Please sign in to comment.