sets the postgres superuser password to "my_password" using -e and the POSTGRES_PASSWORD environment variable.Ĭreate a new file docker-compose.yml: version: "3".uses the -d flag to run in the background.exposes port 54320 to the host using -p.uses a named volume, my_dbdata, to store postgres data.
0 Comments
Leave a Reply. |