Closed mikeyavorsky closed 3 years ago
One note about how the postgres service is defined, but otherwise LGTM
One more comment regarding the Postgres service. Once we've resolved that, I'll give a LGTM.
One more comment regarding the Postgres service. Once we've resolved that, I'll give a LGTM.
@dwreeves According to the Postgres Docker image documentation, the init script and db volume can coexist:
Warning: scripts in /docker-entrypoint-initdb.d are only run if you start the container with a data directory that is empty; any pre-existing database will be left untouched on container startup.
See the initialization scripts section.
Your
.env
file should include (along with any other required vars):build and run with
docker-compose build; docker-compose up -d; docker-compose logs -f app