Skip to content

Instantly share code, notes, and snippets.

@felipejoq
Last active February 17, 2024 15:12
Show Gist options
  • Save felipejoq/223dbd9061baa6b9dd462b2163e01bcc to your computer and use it in GitHub Desktop.
Save felipejoq/223dbd9061baa6b9dd462b2163e01bcc to your computer and use it in GitHub Desktop.
docker-compose.yml
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