database: environment: MYSQL_ROOT_PASSWORD: my-secret-pw # Expose port 3306 to host. Not for the application but # handy to inspect the database from the host machine. ports: - "3306:3306" image: hotblac/spanners-database:3.5 restart: always api: image: hotblac/spanners-api:4.0 links: - database:spanners-database # Expose service to host. Not for the application but # handy to call the API direct from the host machine. ports: - "8090:8080" restart: always mvc: image: hotblac/spanners-mvc:4.0 links: - api:spanners-api ports: - "8080:8080" restart: always