PyJeeves/docker-compose.yml

54 lines
1.1 KiB
YAML

version: '2'
services:
db:
image: mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: J33v3s33
MYSQL_USER: pyjeeves
MYSQL_PASSWORD: jeeves
MYSQL_DATABASE: pyjeeves
ports:
- 3306:3306
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"