version: '3' services: db: image: mariadb container_name: db environment: - MARIADB_ROOT_PASSWORD=secret - MARIADB_DATABASE=mx app: build: . container_name: app depends_on: - db