Created
July 6, 2024 06:22
-
-
Save marcosrjjunior/d5250416b5fe43d982f998c0b7744464 to your computer and use it in GitHub Desktop.
docker compose services
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.4' | |
services: | |
postgres: | |
container_name: postgres_api | |
image: postgres:16.3-alpine3.20 | |
ports: | |
- 5432:5432 | |
restart: always | |
volumes: | |
- db_data:/var/lib/postgresql/data | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: secret | |
volumes: | |
db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment