here is Github repo
workdir is go/src
.
├── Dockerfile
├── README.md
├── db
│ └── *sql
└── entrypoint.sh
go/src/db| key | value |
|---|---|
| DB_HOST | environment variable sets the host name of the machine on which the server is running. |
| DB_PORT | environment variable sets the TCP port. |
| DB_USER | environment variable sets the name for connect to the database as the user |
| DB_PASSWORD | environment variable sets the superuser password for PostgreSQL. |
| DB_NAME | environment variable sets the name of the database to connect to. |
| DB_SSL | environment variable sets the value of ssl mode. |
docker-compose.yaml
migration:
image: yoshi429/goose-migration:latest
depends_on:
postgres :
condition: service_healthy
volumes:
- ./{sqlfile_path}:/go/src/db
env_file:
- .env
.env
DB_HOST=postgres
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=postgres
DB_NAME=postgres
DB_SSL=disable
Content type
Image
Digest
sha256:712b31705…
Size
583.8 MB
Last updated
over 3 years ago
docker pull yoshi429/goose-migration