Created
October 12, 2021 18:01
-
-
Save tjmaynes/c34dcc0d839ac19a780960a64dbd7943 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: '3.1' | |
services: | |
my-service-db: | |
image: "postgres:11.5-alpine" | |
restart: always | |
volumes: | |
- my-service-volume:/var/lib/postgresql/data/ | |
- ./db:/docker-entrypoint-initdb.d/ | |
networks: | |
- my-service-network | |
ports: | |
- "5432:5432" | |
environment: | |
POSTGRES_HOST: localhost | |
POSTGRES_DB: my-service | |
POSTGRES_USER: root | |
POSTGRES_PASSWORD: postgres | |
volumes: | |
my-service-volume: | |
networks: | |
my-service-network: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment