Docker compose file:
services: postgres: image: postgres:16-alpine environment: - POSTGRES_USER=root - POSTGRES_PASSWORD=aaa - POSTGRES_DB=zimple_bank
The above environmet variables are necessary. WIthout them, the container can't be initialized successfully. With them, a database named zimple_bank will be automatically created when the container is created.
- PostgreSQL container compose docker Startpostgresql container compose docker docker docker-compose dockerfile container postgresql containers creating actions devops docker learn start docker_container container restart enable docker container命令 常用docker networking container docker service docker failed start postgres docker start