Created
September 5, 2021 14:28
-
-
Save moeinrahimi/7a00379347291401ab2d3675ede2931e to your computer and use it in GitHub Desktop.
metabase and postgres docker-compose production ready
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: '3.9' | |
services: | |
metabase: | |
image: metabase/metabase:latest | |
container_name: metabase | |
hostname: metabase | |
ports: | |
- 127.0.0.1:3000:3000 | |
environment: | |
MB_DB_TYPE: postgres | |
MB_DB_DBNAME: metabase | |
MB_DB_PORT: 5432 | |
MB_DB_USER: USER_NAME | |
MB_DB_PASS: PASSWORD | |
MB_DB_HOST: postgres | |
# JAVA_TIMEZONE: Asia/Tehran | |
networks: | |
- metanet1 | |
depends_on: | |
- postgres | |
restart: always | |
postgres: | |
image: postgres:latest | |
container_name: postgres | |
hostname: postgres | |
ports: | |
- 127.0.0.1:5432:5432 | |
environment: | |
POSTGRES_USER: USER_NAME | |
POSTGRES_DB: metabase | |
POSTGRES_PASSWORD: PASSWORD | |
networks: | |
- metanet1 | |
volumes: | |
- db-data:/var/lib/postgresql/data | |
restart: always | |
networks: | |
metanet1: | |
driver: bridge | |
volumes: | |
db-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment