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 ports: - 3000:3000