version: '2' services: db: image: mysql restart: always environment: MYSQL_ROOT_PASSWORD: rootpassword MYSQL_USER: pyjeeves MYSQL_PASSWORD: jeeves MYSQL_DATABASE: pyjeeves pyjeeves: container_name: pyjeeves build: ./ image: gitlab.lndvll.se:5500/lindvallskaffe/pyjeeves links: - db volumes: - ./config.yml:/app/config.yml - ./:/app/ metabase: image: metabase/metabase container_name: metabase restart: unless-stopped ports: - 80:3000 links: - postgres - db volumes: - ./metabase/tmp:/tmp environment: - MB_DB_TYPE=postgres - MB_DB_DBNAME=metabase - MB_DB_PORT=5432 - MB_DB_USER=metabase - MB_DB_PASS="m3t@b@s3" - MB_DB_HOST=postgres - JAVA_TIMEZONE=Europe/Stockholm postgres: image: postgres:9-alpine container_name: postgres restart: unless-stopped volumes: - ./postgresql/data:/var/lib/postgresql/data environment: - POSTGRES_DB=metabase - POSTGRES_USER=metabase - POSTGRES_PASSWORD="m3t@b@s3"