# Use root/example as user/password credentials services: db: image: mysql restart: always environment: MYSQL_ROOT_PASSWORD: example # (this is just an example, not intended to be a production configuration)