Last active
May 24, 2024 16:37
-
-
Save walissonaguirra/5688eca277db0a43570961c2f2330878 to your computer and use it in GitHub Desktop.
Um simples arquivo de configuração do Docker Compose para inicia container com uma image do PostgreSQL (alpine) e um gesto minimalista de banco de dados Adminer (standalone)
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.9" | |
services: | |
database: | |
image: postgres:16.3-alpine3.20 | |
restart: always | |
ports: | |
- 5432:5432 | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=postgres | |
- POSTGRES_DB=postgres | |
volumes: | |
- postgres-data:/var/lib/postgresql/data | |
adminer: | |
image: adminer:4.8.1-standalone | |
restart: always | |
ports: | |
- 8080:8080 | |
depends_on: | |
- database | |
environment: | |
- ADMINER_DEFAULT_SERVER=database | |
volumes: | |
postgres-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
O que este arquivo docker-compose contem?