

Postgres_1 | LOG: MultiXact member wraparound protections are now enabled Postgres_1 | LOG: database system was shut down at 17:10:17 UTC Postgres_1 | HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. Postgres_1 | waiting for server to start.LOG: could not bind IPv6 socket: Cannot assign requested address Postgres_1 | Use "-e POSTGRES_PASSWORD=password" to set Postgres_1 | effectively any other container on the same Postgres_1 | Docker's default configuration, this is Postgres_1 | Postgres port to access your database. Postgres_1 | This will allow anyone with access to the
#Elixir ecto long text password
Postgres_1 | WARNING: No password has been set for the database. Postgres_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start You can now start the database server using: Postgres_1 | -auth-local and -auth-host, the next time you run initdb. Postgres_1 | You can change this by editing pg_hba.conf or using the option -A, or Postgres_1 | WARNING: enabling "trust" authentication for local connections Web_1 | Running HelloPhoenixWeb.Endpoint with Cowboy using Web_1 | Postgrex.Protocol (#PID) failed to connect: ** (DBConnection.ConnectionError) tcp connect (postgres:5432): connection refused - :econnrefused Postgres_1 | performing post-bootstrap initialization. Web_1 | backend port not found: :inotifywait Postgres_1 | creating configuration files. Postgres_1 | selecting dynamic shared memory implementation. Postgres_1 | selecting default shared_buffers. Postgres_1 | selecting default max_connections. Postgres_1 | fixing permissions on existing directory /var/lib/postgresql/data. Postgres_1 | Data page checksums are disabled. Postgres_1 | The default text search configuration will be set to "english". Postgres_1 | The default database encoding has accordingly been set to "UTF8". Postgres_1 | The database cluster will be initialized with locale "en_US.utf8". Postgres_1 | This user must also own the server process. Postgres_1 | The files belonging to this database system will be owned by user "postgres". Let's try this now and see what happens: docker-compose upĬreating network "hellophoenix_default" with the default driverĪttaching to hellophoenix_postgres_1, hellophoenix_web_1 We know from our docker-compose.yml file that we will run the mix phx.server command when our web service starts. Thinking back to what Phoenix's installation instructions told us, to get started we need to do two things: Then configure your database in config/dev.exs and run: We will cover why that's important as we continue through this video. I have deliberately missed a step here, which is to set up a volume for Postgres. Port 5432 is the official default port for connecting to Postgres, so that's the one we will use, and want exposed.

The nice part about Docker is just how easy it is to bump up to a newer version of any service, whenever it becomes available. We will use Postgres version 9.6.5, which at the time of writing is the most recent. Create Three Symfony Back Ends - Part #4 - Docker for Easy Database
