version: '3.1' services: db: image: mariadb environment: - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} app: build: . ports: - ${PORT}:80 links: - db