Created
August 20, 2020 17:52
-
-
Save skyrocketeer/0f0cff799fb5f99f852ae668c49dada3 to your computer and use it in GitHub Desktop.
Example docker file with postgres sql service, mail server (mailhog) and redis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "1" | |
services: | |
example-db: | |
image: postgres:12 | |
ports: | |
- "35432:5432" | |
volumes: | |
- /docker/postgres/:/docker-entrypoint-initdb.d | |
container_name: docker-example | |
environment: | |
- "POSTGRES_USER=postgres" | |
- "POSTGRES_PASSWORD=postgres" | |
- "TZ:Asia/Tokyo" | |
- "spring.profiles.active:docker" | |
smtp: | |
image: mailhog/mailhog | |
container_name: 'mailhog' | |
ports: | |
- "1025:1025" | |
- "8025:8025" | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment