Last active
February 17, 2024 15:12
-
-
Save felipejoq/223dbd9061baa6b9dd462b2163e01bcc to your computer and use it in GitHub Desktop.
docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
postgres-db: | |
image: postgres:15.3 | |
restart: always | |
environment: | |
POSTGRES_USER: ${POSTGRES_USER} | |
POSTGRES_DB: ${POSTGRES_DB} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | |
volumes: | |
- ./postgres:/var/lib/postgresql/data | |
ports: | |
- ${POSTGRES_PORT}:5432 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment