Skip to content

Instantly share code, notes, and snippets.

@samhk222
Last active August 13, 2021 13:01
Show Gist options
  • Save samhk222/8c3fb0b8a0ac080719ad4b5e5ee5cb8b to your computer and use it in GitHub Desktop.
Save samhk222/8c3fb0b8a0ac080719ad4b5e5ee5cb8b to your computer and use it in GitHub Desktop.
version: '3'
services:
db:
container_name: IVW-postgres
env_file: .docker/.env
image: postgres
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "15432:5432"
networks:
- ivw-backend-network
pgadmin:
container_name: IVW-pgadmin
env_file: .docker/.env
image: dpage/pgadmin4
links:
- db
volumes:
- pgadmin:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${MAIL_FROM_ADDRESS}
PGADMIN_DEFAULT_PASSWORD: ${DB_PASSWORD}
ports:
- "16543:80"
depends_on:
- db
networks:
- ivw-backend-network
volumes:
pgdata:
pgadmin:
networks:
ivw-backend-network:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment