Created
January 9, 2025 12:29
-
-
Save h4ck4life/4a26a67a80caaea83d36d179fa8bd833 to your computer and use it in GitHub Desktop.
Docker compose for Postgres
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: | |
image: postgres:16 | |
container_name: postgres | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=postgres | |
- POSTGRES_DB=postgres | |
volumes: | |
- postgres_data:/var/lib/postgresql/data | |
networks: | |
- nginxmanager_default | |
restart: always | |
volumes: | |
postgres_data: | |
name: postgres_data | |
networks: | |
nginxmanager_default: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment