Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- app:
- container_name: harmony_app
- build: .
- ports:
- - 2288:2888
- restart: unless-stopped
- depends_on:
- - postgres-server
- volumes:
- - api:/usr/src/app/
- networks:
- - fullstack
- postgres-server:
- image: postgres:latest
- container_name: harmony_db
- environment:
- - POSTGRES_USER=${HARMONY_DB_USER}
- - POSTGRES_PASSWORD=${HARMONY_DB_PASSWORD}
- - POSTGRES_DB=${HARMONY_DB_USER}
- - DATABASE_HOST='harmony'
- volumes:
- - database_postgres:/var/lib/postgresql/data
- ports:
- - '5432:5432'
- networks:
- - fullstack
- volumes:
- api:
- database_postgres:
- networks:
- fullstack:
- driver: bridge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement