Skip to content

Instantly share code, notes, and snippets.

@railsstudent
Created May 26, 2019 11:17
Show Gist options
  • Save railsstudent/74f74a0c2e8af00a79a7fb6ff2ce4ddf to your computer and use it in GitHub Desktop.
Save railsstudent/74f74a0c2e8af00a79a7fb6ff2ce4ddf to your computer and use it in GitHub Desktop.
docker file to setup postgresql and mailhog
version: '3'
services:
postgres:
image: postgres:alpine
ports: ['5432:5432']
environment:
POSTGRES_PASSWORD: postgres
mailhog:
image: mailhog/mailhog
ports: ['8025:8025', '1025:1025']
@railsstudent
Copy link
Author

railsstudent commented Jul 10, 2019

docker-compose -f docker-compose.dev.yml up && docker-compose -f docker-compose.dev.yml down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment