Created
October 4, 2017 11:59
-
-
Save rema7/ef64393dfa492bcfeae9e61db15fb915 to your computer and use it in GitHub Desktop.
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
webservice_db: | |
image: postgres:9.6 | |
environment: | |
POSTGRES_PASSWORD: 'db_pwd' | |
POSTGRES_USER: 'db_user' | |
PGDATA: '/data/pgdata' | |
POSTGRES_DB: 'microservice_db_docker' | |
volumes: | |
- ./dbdata:/data/pgdata | |
ports: | |
- "6100:5432" | |
im_rest_backend: | |
environment: | |
DB_CONNECTION: postgresql+psycopg2://db_user:db_pwd@im_db/microservice_db_docker | |
build: ./backend | |
ports: | |
- "9000:8000" | |
volumes: | |
- ../.:/app | |
depends_on: | |
- webservice_db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment